repo.or.cz
/
copyleftie-krc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove mkc.sh; change README.md to reflect this
[copyleftie-krc.git]
/
ch01
/
ex01-05.c
blob
04bd7a2ac1f5f8a014f1be961ca66ca79a8caa8f
1
#!/usr/bin/tcc -run
2
#include <stdio.h>
3
4
#define UPPER 300
5
#define LOWER 0
6
#define STEP 20
7
8
int
9
main
() {
10
int
f
;
11
12
for
(
f
=
UPPER
;
f
>=
LOWER
;
f
-=
STEP
)
13
printf
(
"%3d %6.1f
\n
"
,
f
, (
5.0
/
9.0
)*(
f
-
32
));
14
15
return
0
;
16
}