Anonymous
public text v1 · immutable/*Convert celsious to faranhight in incriments of 20...*/
#include <stdio.h>
int main (void)
{
float step =20;
float upper = 300;
float fah, cel = 0;
/* Print heading */
printf ("Celsious \t Faranhight\n");
while (cel <= upper)
{
fah = (5.0*9.0) / (fah+32.0);
printf("%3.0f \t %6.1f\n", cel, fah);
cel = cel + step;
}
return 0;
}