to extract the functions already created in file . float deg,fah creates float type variables which
stores temprature in degrees & fahrenite given by user .conversion formula of temprature from
degree centigrade to fahrenite is fahrenite = (1.8*degree)+32 which is stored in variable fahrenite .
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Program for Temperature Measurement (°F to °C).
#include<stdio.h>#include<conio.h>
void main()
{ float deg,fah;
clrscr();
printf("\n program to convert temprature from centigrade to fehreneit");
printf("\n\n enter temprature in degree centigrade : ");
scanf("%f",°);
fah = (1.8*deg) + 32;
printf(" temprature in fahreneit = %f",fah);
getch();
}

No comments:
Post a Comment
Guys if you think something is wrong or should be edit than please do comment.