Write a C – program to read temperature in Celsius (c) and convert it to Fahrenheit
(F) using the formula, f=(1.8)c + 32.
Answers
Answered by
8
#include<stdio.h>
int main()
{
float fahr, cel;
printf("Enter the temperature in celsius: ");
scanf("%f", &cel);
fahr = (1.8 * cel) + 32.0; //temperature conversion formulea
printf("\nTemperature in Fahrenheit: %.2f F\n", fahr);
return 0;
}
Answered by
1
Answer:
Go to CodeWin_ORG
Explanation:
Attachments:
Similar questions