/* TEMPERATURE CONVERSION*/
#include<stdio.h>
#include<conio.h>
void main()
{
float c,f;
clrscr();
printf("Enter temperature in Celsius::");
scanf("%f",&c);
f=((9*c)/5)+32;
printf("The value of temperature in Fahrenheit = %f",f);
getch();
}
/************************OUTPUT***************************
Enter temperature in Celsius::5
The value of temperature in Fahrenheit = 41.000000*/
No comments:
Post a Comment