3 Answers
New AnswerFirst you can declare amount as an input variable. Then, you need to calculate 10% of the current amount and subtract that 10% from the current amount by running a loop for 3 times. Finally, you can get output outside loop. By the way, I gave some hints. Try to finish it yourself. Show your try if you can't solve it anymore.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message