Computer Science, asked by debkotatoyanatha, 2 months ago

Temperature is measured in degree Celsius.Given the temperature in Fahrenheit ,write a program to determine the values in degree Celsius. [C=5/9(F-32)]​

Answers

Answered by rohithrvs4
1

Answer:

#include <stdio.h> int main() { float celsius, fahrenheit; /* Input temperature in fahrenheit */ printf("Enter temperature in Fahrenheit: "); scanf("%f", &fahrenheit); /* Fahrenheit to celsius conversion formula */ celsius = (fahrenheit - 32) * 5 / 9; /* Print the value of celsius */ printf("%.2f Fahrenheit = %.2f Celsius", fahrenheit, celsius); return 0; }

Similar questions