Advertisement
smeacham

Temperature Conversion Table

Nov 6th, 2012
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.   float c = 0;
  6.   while (c <= 300) {
  7.     printf("%3.0f %6.1f\n", c, c * (9.0/5.0) + 32);
  8.     c += 20;
  9.   }
  10.  
  11.   return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement