To convert temperature in fahrenheit to centigrade
Program:
#include<stdio.h>
#include<conio.h>
void main()
{
float c, f;
clrscr();
printf("Enter the fahrenheit : ");
scanf("%f", &f);
c = (f - 32) / 1.8;
printf("\nThe centigrade is : %.2f", c);
getch();
}
Output:
Enter the fahrenheit : 113
The centigrade is : 45.00
-
UpdatedDec 30, 2019
-
Views4,927
You May Like
Program to maintain employee details using structures
Program to maintain student details using structures
Check whether the person is eligible to vote or not
Print the numbers that are divisible by a given no.
Program to generate magic square
To sort the given numbers in ascending & descending order