C Program for Celsius to Fahrenheit Converter
For Temperature conversion, the below Code for Celsius to Fahrenheit conversion written in C lets you to calculate the equivalent Fahrenheit value for the given temperature value in CelsiusCelsius to Fahrenheit Converter C Program
#include <stdio.h>
main()
{
int fahr, celsius;
int lower,upper,step;
lower = 0;
upper = 300;
step = 20;
fahr = lower;
while(fahr<=upper){
celsius = 5 * (fahr-32) / 9;
printf("%d\t%d\n", fahr,celsius);
fahr = fahr + step;
}
}