Write an if-else statement that outputs the word emergency


Question: Write an if-else statement that outputs the word "Emergency" provided the value of the variable pressure is greater than 100 or the value of the variable temperature is greater than or equal to 212. Otherwise, the if-else statement should output the word "OK". The variables pressure and temperature are both of type int.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write an if-else statement that outputs the word emergency
Reference No:- TGS02404325

Now Priced at $15 (50% Discount)

Recommended (93%)

Rated (4.5/5)