==[[C やさしい入門]]==
[[Programming C]] |
{{amazon|4320026926}}
#include <stdio.h>
#define LOWER LOWE[[R]] 0 /* lower limit of temperature */ #define UPPER UPPE[[R]] 300 /* upper limit of temperature */
#define STEP 20 /* step size */
int celsius;
for (celsius=LOWERLOWE[[R]]; celsius<=UPPERUPPE[[R]]; celsius +=STEP) {
printf("%d\t%d\n", celsius, (celsius * 9 / 5 + 32));
}
}