repo.or.cz
/
C-Programming-Examples.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Inital Commit
[C-Programming-Examples.git]
/
ex_1-4.c
blob
d28f5e431847e9c1dab24886fb39a7b7a40b9ada
1
#include <stdio.h>
2
3
main
()
4
{
5
float
fahr
,
celsius
;
6
int
lower
,
upper
,
step
;
7
8
lower
=
0
;
9
upper
=
300
;
10
step
=
20
;
11
12
celsius
=
lower
;
13
14
while
(
celsius
<=
upper
)
15
{
16
fahr
= (
celsius
*
1.8
)+
32
;
17
printf
(
"%6.1f %6.1f
\n
"
,
celsius
,
fahr
);
18
celsius
=
celsius
+
step
;
19
}
20
}