Question: If num _ bananas is less than 3 , then output 'num _ bananas is less than the required amount to purchase. ' If num
If numbananas is less than then output 'numbananas is less than the required amount to purchase.
If numbananas is greater than or equal to then assign totalcost with the product of numbananas and
If totalcost is less than or equal to dollaramount, then output 'Bananas successfully purchased.
Otherwise, output 'Not enough money to buy all.
If dollaramount is greater than or equal to then output At least one item was purchased.
Click here for examples
numbananas
dollaramount int input
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
