PROBLEM 36:
Write a program that takes input of temperature in Celsius and converts it into Fahrenheit and prints the result.
CODE:
#include<stdio.h>
main ()
{
float temp;
float ans;
printf("enter temperature in celsius:");
scanf("%f",&temp);
ans=temp*9/5+32;
printf("your temperature in fehrenheit is:%f",ans);
return 0;
}
PROGRAM OUTPUT:
For more problems click here
No comments:
Post a Comment