$ vim printf.c
a
1 #include <stdio.h>
2
3 int main(void)
4 {
5 char mozi;
6 int seisu;
7 double zissu;
8
9
10 mozi = 'A';
11 printf("char mozi: %c\n", mozi);
12
13 seisu = 10000;
14 printf("int seisu: %d\n", seisu);
15
16 zissu = 12345.678;
17 printf("double zissu: %lf\n", zissu);
18
19 return 0;
20 }
Esc
:wq
$ gcc -o printf printf.c
$ ./printf