computing-fundamentals
C programs and question bank.
Monday, November 1, 2010
Fahrenheit to centigrade-C
#include
#include
void main()
{
float f,c1;
clrscr();
printf("\n Enter the fahrenheit value");
scanf("%f",&f);
c1=(5.0/9.0)*(f-32);
printf("\n The Fahrenheit %f to centigrade is:%6.2f",f,c1);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment