Advertisement
Mary_99

Fahrenheit and Celsius

Nov 25th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {
  5.     int fahr;
  6.     for (fahr = 0; fahr <= 300; fahr = fahr + 10)
  7.     {
  8.         printf("%3d %6.1f\n", fahr, 5.0/9*(fahr-32));
  9.     }
  10.   return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement