Question

Buta 20- Crude oil needs to be refining into separate hydrocarbon groups before it can be used. By using IF statement, write
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution:

C program

#include <stdio.h>

int main(void) {

int temperature=230;//400 degree centigrage

if(temperature>=400)

printf("crude oil/asphalt");

if(temperature<400 && temperature>=370)

printf("Fuel");

if(temperature<370 && temperature>=300)

printf("Diesel");

if(temperature<300 && temperature>=200)

printf("Kerose");

if(temperature<200 && temperature>20)

printf("Gasol/Buta");

}

main.c saved #include <stdio.h> > clang-7 pthread -lm -o main main.c } ./main Kerose: 0 1 2 3 4 5 6 7 8 int main(void) { int

Thank you, Have a great day:-)

Add a comment
Know the answer?
Add Answer to:
Buta 20- Crude oil needs to be refining into separate hydrocarbon groups before it can be...
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