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
Added stack address randomization example.
[C-Programming-Examples.git]
/
temp_conv2.c
blob
921f0ae1835619f54a2774d7674815a0c9deb0c4
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
fahr
=
lower
;
13
while
(
fahr
<=
upper
){
14
celsius
= (
5.0
/
9.0
) * (
fahr
-
32.0
);
15
printf
(
"%3.0f %6.1f
\n
"
,
fahr
,
celsius
);
16
fahr
=
fahr
+
step
;
17
}
18
}