Celsius to Fahrenheit Converter

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 Celsius

Celsius 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;
}
}


Related Topic Decimal to Binary Number Converter in C Program
Decimal to Binary Number Converter in Java Program
Java Program for Decimal to Hex converter
Convert BBCode to HTML in PHP
C Program to Convert Number to Word

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback