Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Exercise 1-5.
- * Modify the temperature conversion program to print the table
- * in reverse order, that is, from 300 degrees to 0.
- */
- #include <stdio.h>
- main() {
- int fahr;
- for (fahr = 300; fahr >= 0; fahr = fahr - 20)
- printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32));
- }
Advertisement
Add Comment
Please, Sign In to add comment