Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double tempC;
- double tempF;
- unsigned char deg = 248;
- while(1) {
- printf("Input a temperature in %cC\n", deg);
- scanf("%lf", &tempC);
- tempF = tempC * 1.8 + 32;
- printf("%.1f %cC equals %.1f %cF\n\n", tempC, deg, tempF, deg);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement