repo.or.cz
/
letusc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move to repo.or.cz
[letusc.git]
/
ch1
/
exercises
/
ex4.c
blob
1da5e60af7226df11e78c6581c1acf945c2f3166
1
/*fahrenheit to celcius*/
2
3
#include<stdio.h>
4
5
int
main
()
6
{
7
float
fh
,
cs
;
8
printf
(
"Enter the temp in fahrenheit: "
);
9
scanf
(
"%f"
,&
fh
);
10
11
cs
= (
fh
-
32
)*(
5.0
/
9.0
);
12
13
printf
(
"The Temp in celcius is %.2f C"
,
cs
);
14
return
0
;
15
}