Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. double tempC;
  2. double tempF;
  3. unsigned char deg = 248;
  4. while(1) {
  5. printf("Input a temperature in %cC\n", deg);
  6. scanf("%lf", &tempC);
  7. tempF = tempC * 1.8 + 32;
  8. printf("%.1f %cC equals %.1f %cF\n\n", tempC, deg, tempF, deg);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement