summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--1/4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/1/4.c b/1/4.c
index 3416e02..653b530 100644
--- a/1/4.c
+++ b/1/4.c
@@ -12,7 +12,7 @@ int main(int argc, char *argv[]) {
printf("celsius\tfahrenheit\n");
while (celsius <= upper) {
- fahr = (9.0 * celsius / 5.0) + 32.0;
+ fahr = (celsius * 9.0 / 5.0) + 32.0;
printf("%7.0f\t%10.1f\n", celsius, fahr);
celsius = celsius + step;
}