Write a program to compute Fahrenheit from centigrade (f=1.8*c +32)

 GTU Programming for Problem Solving Practical-6

/* 

6. Write a C program to compute Fahrenheit from centigrade (f=1.8*c +32)

*/

#include <stdio.h>

int main() 

{

 float F,C;

 printf("Enter Temperature in Celsius : " );

 scanf("%f",&C);

 F = (C * 1.8) + 32;

 printf("\n %.2f Celsius = %.2f Fahrenheit",C, F);

 return 0;

}

Post a Comment

0 Comments