Write a program in C to change the inputted Fahrenheit temperature to its corresponding Centigrade value.

 // fahrenheit-to-centigrade.c

#include <stdio.h>

#include <conio.h>


int main()

{

float inFah;

printf("Enter a fahrenheit value:\n");

scanf("%f", &inFah);

printf("Centigrade value of %f°F is: %f°C", inFah, (inFah - 32) * 5/9);


getch();

return 0;

}

 

https://drive.google.com/file/d/1BIb2b5M4kVlxlH7_jmjeNvdtXaiJ8Y9n/view?usp=sharing

Comments