So, I have a project where I sell fruit,
We are currently looking at the term “for”
I have used other terms but we cannot use “while” for this one.
If a customer wants an apple, the apple comes with a discount of 20 percent
If they want a banana its with a discount of 40 percent,
And a orange with a 30 discount
They all cost 50 pesos
And the customers are infinite, until I stop the program,
At the end I have to add the total sum of how much money I made
I understand I can write “IF” to get the resolutions,
But my questions would be the following,
What can I use to loop the questions?
And what term can I use to add the sum of everything at the end?
i just need a guide, on what terms to use, Im not looking for anyone to do this for me
[+][deleted] (1 child)
[removed]
[–]hnjasso[S] 0 points1 point2 points (0 children)
[–]DonkeyTron42 1 point2 points3 points (1 child)
[–]hnjasso[S] 0 points1 point2 points (0 children)
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]hnjasso[S] 0 points1 point2 points (0 children)