Question: dollar _ amount is read from input. Write multiple if statements: If dollar _ amount is greater than or equal to 1 1 , then
dollaramount is read from input. Write multiple if statements:
If dollaramount is greater than or equal to then output 'Buy a hat.
If dollaramount is greater than or equal to then output 'Buy a new coat.
If dollaramount is less than then output 'Save money.
Click here for examples
Ex : If the input is then the output is:
Buy a hat.
Ex : If the input is then the output is:
Buy a hat.
Buy a new coat.
Ex : If the input is then the output is:
Save money.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
