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

12. Write a program to read marks from keyboard and your program should display equivalent grade according to following table(if else ladder) Marks Grade 100 - 80 Distinction 79 - 60 First Class 59 - 40 Second Class < 40 Fail