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

Popular posts from this blog

create a num table in a new file in c

write a programme to compare time stamp in c

write a struct programme to keep bank details in c