convert celsius to fahrenheit in c
#include<stdio.h>
int main()
{
float celsius, fahrenheit;
printf("Enter the temperature in celsius\n");
scanf("%f", &celsius);
fahrenheit = (celsius * 9/5) + 32;
printf("The value of the celsius temperature in fahrenheit is %f", fahrenheit);
return 0;
}
Comments
Post a Comment