C program and problem solution
Pages
Home
Array
Function
Puzzle
Overview
Write a c program to convert the given temperature Fahrenheit to Celsius using the following formula C = (F – 32)/1.8 and display the values in tabular form
#include
<
stdio.h
>
int main
()
{
float
c, f;
printf(
"F= "
);
scanf(
"%f"
,&f);
c=(f-32)/1.8;
printf(
"C= %f"
,c);
return
0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment