Program to convert temperature from degree centigrade to Fahrenheit.
#include<stdio.h>
#include<conio.h>
void main()
{
float c,f;
clrscr();
printf("Enter temp in centigrade: ");
scanf("%f",&c);
f=(1.8*c) 32;
printf("Temp in Fahrenheit=%f",f);
getch();
}
No comments:
Post a Comment