C program to convert centigrade temperature into fahrenheit.

01 #include <stdio.h>
02
03 int main()
04 {
05 float c, f;
06 printf(" Enter temp in centigrade: ");
07 scanf("%f",&c);
08 f = ( 1.8 * c ) + 32;
09 printf(" Temperature in Fahrenheit = %f", f);
10
11 return 0;
12 }
 
  
OUTPUT :

Enter temp in centigrade: 100
Temperature in Fahrenheit = 212

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.