Monday, 17 August 2015

Convert Celsius to Fahrenheit

/*c program to convert Celsius to Fahrenheit temperature*/
#include<stdio.h>
#include<conio.h>
int main()
{
 float fh,cl;
 printf("Enter temperature value in Celsius: ");
 scanf("%f"&cl);
 /*convert formula: Fahrenheit to Celsius*/
 fh = (1.8*cl) + 32;
 printf("Converted Fahrenheit value: %f",fh);
 getch();
 return 0;
}

No comments:

Post a Comment