Code Box
----------------------------------------
/*Program to convert temperature Celsius to Fahrenheit in C */
#include<conio.h>
#include<stdio.h>
void main()
{
float c,f;
clrscr();
printf("\n\tTEMPERATURE CONVERTER \n\t[Celsius to Fahrenheit]");
printf("\n\tEnter temperature in C:");
scanf("%f",&c);
f=((c*9)/5)+32;
printf("\n\tC= %f equals to F= %f",c,f);
getch();
}
No comments:
Post a Comment