mirror of
https://github.com/krislamo/knrc.git
synced 2025-01-07 03:50:36 +00:00
Exercise 1-5. print the table in reverse order
This commit is contained in:
parent
ee5bcb81ce
commit
588969b09f
@ -6,6 +6,6 @@ int main()
|
||||
int fahr;
|
||||
|
||||
printf("Fahrenheit\tCelsius\n=======================\n");
|
||||
for (fahr = 0; fahr <= 300; fahr = fahr + 20)
|
||||
for (fahr = 300; fahr >= 0; fahr = fahr - 20)
|
||||
printf("%3d\t\t%7.1f\n", fahr, (5.0/9.0)*(fahr-32));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user