본문 바로가기

정올

[출력-자가진단8] 출력 - 자가진단8 Time Limit : 1000MS 다음과 같이 출력되는 프로그램을 작성하라. (각 요소들은 10칸씩 공간을 확보하여 오른쪽으로 정렬하여 출력한다.) #include int main(void){ printf("%10s%10s%10s\n","item","count","price"); printf("%10s%10d%10d\n", "pen", 20, 100); printf("%10s%10d%10d\n", "note", 5, 95); printf("%10s%10d%10d\n", "eraser", 110, 97); return 0;}
[출력-자가진단7] 출력 - 자가진단7 Time Limit : 1000MS 다음과 같이 출력되는 프로그램을 작성하라. (공백으로 구분하여 출력) 5단 5 * 2 = 10 #include int main(void){ printf("5단 \n5 * 2 = 10"); return 0;}
[출력-자가진단6] 출력 - 자가진단6 Time Limit : 1000MS 다음과 같이 출력되는 프로그램을 작성하라. 나의 키는 170 나의 몸무게 68.600000 #include int main(void){ int height = 170; double weight = 68.6; printf("나의 키는\n%d\n나의 몸무게\n%lf", height, weight); return 0;}
[출력-자가진단5] 출력 - 자가진단5 Time Limit : 1000MS 서식 문자를 사용하여 다음과 같이 출력되는 프로그램을 작성하라. 나도 프로그램을 잘할 수 있다. 꿈은 이루어진다. #include int main(void){ char str[100]="나도 프로그램을 잘할 수 있다.\n꿈은 이루어진다."; printf("%s", str); return 0;}
[출력-자가진단4] 출력 - 자가진단4 Time Limit : 1000MS 다음과 같이 출력되는 프로그램을 작성하라. #include int main(void){ printf("@@@@@\n@ @\n@@@@@\n@ @\n@@@@@"); return 0;}
[출력-자가진단3] 출력 - 자가진단3 Time Limit : 1000MS 나의 이름은 OOO입니다. 나의 나이는 OO살입니다.소스를 제출할 때 이름은 "홍길동", 나이는 "13"으로 하세요.. 나의 이름은 홍길동입니다. 나의 나이는 13살입니다. #include int main(void){ char name[10] = "홍길동"; int age = 13; printf("나의 이름은 %s입니다.\n나의 나이는 %d살입니다.", name, age); return 0;}
[출력-자가진단2] 출력 - 자가진단2 Time Limit : 1000MS 다음과 같이 출력되는 프로그램을 작성하라. C언어 프로그래밍! 재미있어요! #include int main(void){ printf("C언어 프로그래밍! 재미있어요!\n"); return 0;}
[출력-자가진단1] 출력 - 자가진단1 Time Limit : 1000MS 아래 "출력예"와 같이 출력되는 프로그램을 작성하라. C는 대문자 입니다. 재미있는 C언어 프로그래밍! #include int main(void){ printf("재미있는 C언어 프로그래밍!\n"); return 0;}