Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- /* print fahrenheit-celcius table */
- double convert(int a)
- {
- double u;
- u = (a - 32) * (5.0/9.0);
- return u;
- }
- main()
- {
- int f;
- for (f = 0; f <= 300; f = f + 20)
- printf("%3d %6.1f\n", f, convert(f));
- return 0;
- }
Add Comment
Please, Sign In to add comment