printf 2-5 37 52 537 52 printf("%d\n", 5 + 37); 5370 source program source file.c ex00.c 0 comment
%d d 0 decimal -2 -p.6 3-2 5 37 5 37-22 537 537-22 printf("537%d\n", 5-37); function function call ( )argument, printf printf printf format printf format string %d 0 conversion specification printf("%d\n", 5 + 37 ); 52 printf("537%d\n", 5-37 ); 537-22 \n printf - -2 p.38 32
ex00 JIS \ 4-3 printf -2p.9 printf("\n\n\n\n"); ex00 \n - -2 printf \nnew line \ \nescape sequence - printf printf("%d", 5 + 37); \n 52 52MS-DOS A> UNIX % printf("\n\n\n\n");
-4 5-3p.9-4 printf printf("\n\n\n\n"); \n printf("\n\n \n\n"); printf printf printf("\n"); printf("\n\n"); printf("\n"); printf("\n\n"); printf("\n\n"); printf statement
6-5!!!!!!!!!!!! printf("!!\a!!\a\n"); \a alert \a 8 p.89 "ABC"""" string literal #include6 main6 3 return6
-5 7! - + * / \ %., : ; ' " ( ) [ ] < > & ~? ^ # _ = JIS JIS -
no int integer 4 p.76 8-6 int no75 int no; noint no = 75; no75 printf("no%d\n", no); no constant int no; declaration int int no ; no noint no x = no 75 75 75 no = 75 no
printf & & 0 p.222scanf ' Print Screen Scroll Lock Pause Up Delete End Page Down Num Lock Num Lock Caps Lock Home PgUp End PgDn Ins Del Scroll Lock Enter -7 9-7 int no32 no32 int no; no 32 no32 printf("no"); scanf("%d", &no); printf("no%d\n", no); no scanf printf scanf scanf %d printf 0 0 no p.322 325 printf("%d", no); 0 Esc F F2 F3 F4 F5 F6 F7 F8 F9 F0 F F2 no 0 ~ ` Tab Caps Lock Shift! @ # $ 2 3 4 % Z X C V B 5 ^ 6 & 7 * 8 ( ) 9 0 Q W E R T Y U I O P A S D F G H J K L N M <, >.? / : ; + = [ ] Ctrl Alt Alt Ctrl " Backspace Insert Home Page Shift \ Enter 7 8 9 4 5 6 2 0 / * + scanf("%d", &no);
0-4p.3-8 0 57 067 0 int no; printf(""); scanf("%d", &no); printf("0%d\n", no + 0); 57 067 -+ Column 972 Dennis M. Ritchie Ken ThompsonUNIX OS UNIX UNIX UNIX UNIX Ritchie Brian W. Kernighan The C Programming Language, Prentice-Hall, 978 K&R K&RReference Manual
-9-9 0 0 int no; 57 047 57 047-5p.3 printf(""); scanf("%d", &no); printf("0%d\n", no - 0); + - no + 0 0 + no 0 - no Column K&R ISOInternational Organization for StandardizationANSI American National Standards Institute 989 2 ANSI X3.59-989 American National Standard for Information Systems - Programming Language-C 990 2 INTERNATIONAL STANDARD ISO/IEC 9889 : 990(E) Programming Languages-C JIS X300-993 993
2-6p.5-0 printf puts puts puts("\n\n\n"); puts putssstringputs puts("")printf("\n") printf("abc\n"); puts("abc"); printf puts puts puts puts("\n"); puts("\n"); puts(""); puts(""); puts(""); puts("");
- 3 - int n, n2; int seki; 27 35 945 27 35 945-7p.5 puts(""); printf(""); scanf("%d", &n); printf(""); scanf("%d", &n2); seki = n * n2; nn2seki printf("%d\n", seki); *seki printf printf("%d\n", n * n2); seki n n2, n n2 int n; int n2; p.84 85
4-8p.5-2 7 5 23 45 7 5 23 int n, n2, n3; 45 puts(""); printf(""); scanf("%d", &n); printf(""); scanf("%d", &n2); printf(""); scanf("%d", &n3); printf("%d\n", n + n2 + n3);
5 () 0(2)(3) (4)(5)(6)(4) (7) (7) (a)(b) (8) (8) (8) (9) (8) printf puts printf (9) (0) (9) () 0 ()% (2) puts (3) (3) (a)(b) \n (4)\a (5) "ABC""Hello!!"(6) ax (7)ax; + - (8)
6 printf("(9)"); printf(" (20) "); printf(" (20) "); printf(" (20) "); printf("(2)"); printf("(22)"); 3 puts("(23)"); puts("(24)"); puts("(25)"); puts("(26)");
7 5 57 5285 int (27); printf(""); scanf("(28)", (29) no); printf("5(30)\n", 5 (3) no); int (32); printf(""); printf(""); scanf(" (28) ", (29) c); printf(""); scanf(" (28) ", (29) c2); printf(""); scanf(" (28) ", (29) c3); printf("(33)\n", (34));