summaryrefslogtreecommitdiff
path: root/one/temp.c
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-01-19 10:19:14 -0600
committerMichael Hunteman <michael@huntm.net>2024-01-19 10:19:14 -0600
commit3ec60213eab6a852863f0697b8722f18d10d6307 (patch)
treeb25ab6cfb40fe4e2363825b9c116e1279ef8bf29 /one/temp.c
parent1699bc3c493678a18d1ee50b725a7512e0ff6095 (diff)
Use main instead of temp functionHEADmaster
Diffstat (limited to 'one/temp.c')
-rw-r--r--one/temp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/one/temp.c b/one/temp.c
index cbbbc23..3b49c39 100644
--- a/one/temp.c
+++ b/one/temp.c
@@ -4,8 +4,8 @@
#define UPPER 300
#define STEP 20
-void
-temp()
+int
+main()
{
float fahr, cel;
@@ -21,11 +21,5 @@ temp()
fahr = 9.0 / 5.0 * cel + 32.0;
printf("%3.0f %6.0f\n", cel, fahr);
}
-}
-
-int
-main()
-{
- temp();
return 0;
}