授業/C言語基礎/while文/練習問題/06A-1
をテンプレートにして作成
開始行:
*解答例1 [#lc6626e1]
#geshi(c){{
int main(void) {
int i = 1;
while (i <= 10) {
printf("%d\n", i);
i++;
}
return 0;
}
}}
*解答例2 [#qc39442a]
#geshi(c){{
int main(void) {
int i = 1;
while (i < 11) {
printf("%d\n", i);
i++;
}
return 0;
}
}}
*解答例3 [#q1d49844]
#geshi(c){{
int main(void) {
int i = 1;
while (i < 11) {
printf("%d\n", i);
i += 1;
}
return 0;
}
}}
*解答例4 [#de4810f7]
#geshi(c){{
int main(void) {
int i = 1;
while (i < 11) {
printf("%d\n", i);
i = i + 1;
}
return 0;
}
}}
終了行:
*解答例1 [#lc6626e1]
#geshi(c){{
int main(void) {
int i = 1;
while (i <= 10) {
printf("%d\n", i);
i++;
}
return 0;
}
}}
*解答例2 [#qc39442a]
#geshi(c){{
int main(void) {
int i = 1;
while (i < 11) {
printf("%d\n", i);
i++;
}
return 0;
}
}}
*解答例3 [#q1d49844]
#geshi(c){{
int main(void) {
int i = 1;
while (i < 11) {
printf("%d\n", i);
i += 1;
}
return 0;
}
}}
*解答例4 [#de4810f7]
#geshi(c){{
int main(void) {
int i = 1;
while (i < 11) {
printf("%d\n", i);
i = i + 1;
}
return 0;
}
}}
ページ名: