int a; a = 1 + 2; printf("%d", a);
int a; a = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10; printf("こたえは %d", a);
int a, b, c; a = inptInt("たて? "); b = inptInt("よこ? "); c = a * b; printf("めんせき = %d", c);
float a, b, c, d; a = inptFlot("しんちょう[cm]? "); b = inptFlot("たいじゅう[kg]? "); c = a / 100.0; d = b / (c * c); printf("BMI = %f", d);
int inptInt(const char *s, ...) { int r; if (s != NULL) { sを表示(printf風に); } scanf("%d", &r); return r; }
(This host) = http://osask.net