問題1のヒント
printf文の使い方
printf("文字列", 変数1, 変数2, 変数3);
変数を表示する。
int
%d
long
%ld
float
%f
double
%lf
char
%c
文字列
%s
例:printf("%d %f", a, b);
エスケープ系列
\n
改行
\t
タブ
\b
バックスペース
例:printf("%d\t%d\n", a, b);
[ 戻る ]