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

#include<stdio.h>
#include<conio.h>
void main()
{
float c,fr;
printf("Celsius=");
scanf("%f",&c);
fr=((1.8)*c+32);
printf("Fahrenheit=%f",fr);
getch();
}


#Output:


Comments

Popular posts from this blog