Suppose savings and expenses are variables of type double


Question: Suppose savings and expenses are variables of type double that have been given values. Write an if-else statement that outputs the word "Solvent", decreases the value of savings by the value of expenses , and sets the value of expenses to zero, provided that savings is larger than expenses . If, however, savings is less than or equal to expenses, the if-else statement should simply output the word "Bankrupt" without changing the value of any variables.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Suppose savings and expenses are variables of type double
Reference No:- TGS02404310

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)