Question

Write a program that displays a table of the Celsius temperatures 0 through 20 and their...

Write a program that displays a table of the Celsius temperatures 0 through 20 and their Fahrenheit equivalents.




use formula for converting celsius to faremnheit

0 0
Add a comment Improve this question Transcribed image text
Answer #1

/** * C program to convert temperature from degree celsius to fahrenheit */
#include <stdio.h>
int main() {
float fahrenheit;
int cel;
printf("Celsius \t Fahrenheit ");
printf("\n") ;
for(cel=0;cel<=20;cel++) {
fahrenheit = (cel * 9 / 5) + 32;
printf(" %d \t \t %.2f ", cel, fahrenheit);
printf("\n") ;
}
}

Celsius input Fahrenheit 32.00 33.00 35.00 37.00 39.00 41.00 42.00 44.00 46.00 48.00 50.00 51.00 53.00 55.00 57.00 59.00 60.0

Add a comment
Know the answer?
Add Answer to:
Write a program that displays a table of the Celsius temperatures 0 through 20 and their...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT