
Read it right next to your computer.
Book version bitter C
#include <stdio.h>
int main(void)
{
int year = 0;
double money = 10000;
while (money < 15000) {
year++;
money *= 1.01;
}
printf("%d , %f\n", year, money);
return 0;
}
#include <stdio.h>
int main(void)
{
int score;
do {
printf("点数を入力して下さい:");
scanf("%d", &score);
} while (score < 0 || score > 100);
printf("入力された点数 %d\n", score);
return 0;
}
#include <stdio.h>
int main(void)
{
int score = 0;
do {
if (score != 0)
printf("点数は 0~100の範囲で入力して下さい。\n");
printf("点数を入力して下さい:");
scanf("%d", &score);
} while (score < 0 || score > 100);
printf("入力された点数 %d\n", score);
return 0;
}
Learning C language through suffering (Kushi C) is
This is the definitive introduction to the C language.
It systematically explains the basic functions of the C language.
The quality is equal to or higher than commercially available books.