Question: Write a code to ask the user to enter his expenses in a day. you must allow the user to enter as many numbers as

 Write a code to ask the user to enter his expenses

Write a code to ask the user to enter his expenses in a day. you must allow the user to enter as many numbers as he wants until he enter 0 (zero). if he entered 0 then print the sum of his expenses and finish the program. Sample output: Enter your expenses: 20 30 15.5 30.88 0 The total of your expenses is: 96.38 AED

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!