Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
You are helping at a school bake sale. After each customer, you type how many dollars they paid (use decimals if needed). When there are no more customers, you enter 0 to finish.
Write a program that:
float and input()).Sum is: 47.5Use a loop with break when the sentinel value is entered.
Skills: variables, while, if, float, accumulation.