Go to my personal blog
Another
program to print Fahrenheit-Celsius table with decimal integer
This program is presented
as below.
#include <stdio.h>
/* print Fahrenheit_Celsius table
for fahr = 0, 20, ..., 300; floating-point version */
int main()
{
float fahr, celsius;
int lower, upper, step;
lower = 0; /* lower limit of temperature table */
upper = 300; /* upper limit of temperature table */
step = 20; /* step size */
fahr = lower;
......
阅读全文