To convert temperature in centigrade to fahrenheit
Program:
#include<stdio.h>
#include<conio.h>
void main()
{
float c, f;
clrscr();
printf("Enter the centigrade : ");
scanf("%f", &c);
f = (1.8 * c + 32);
printf("\nThe fahrenheit is : %.2f", f);
getch();
}
Output:
Enter the centigrade : 45
The fahrenheit is : 113.00
-
UpdatedDec 30, 2019
-
Views4,999
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