0

Please i need help with this question, I'm new to C++ language. I got stranded at the 4th and 5th line.

Suppose savings and expenditure are variables of type double. Write an if else statement that request two inputs from a user and output "Solvent"; decrease the value of savings by the value of expenditure and set the value of expenditure to zero, provided savings is at least greater than expenditure. If, however savings is less than expenditure, the program should output the word "Bankrupt".

22nd Feb 2020, 2:31 PM
Joseph Ogba
Joseph Ogba - avatar
1 Odpowiedź
+ 1
When should it give the output solvent? What condition?
22nd Feb 2020, 4:29 PM
Avinesh
Avinesh - avatar