ProAnswers.org

Write a C program to convert Celsius to Fahrenheit?

#include

#include 

void main() 

{ 

float f,c; 

clrscr(); 

printf(“enter the celsius value:

”);

scanf(“%f”,&c); 

f=((c*9)/5)+32; 

printf(“fahrenheit value=%f”,f); 

getch(); 

} 

Output: 

enter the celsius value: 

37 

fahrenheit value=98.599998