0

Some exercises on the While cycle to practice

Exercise 1: • Create a program that asks for numbers infinitely. The numbers entered must get bigger and bigger The program will end when you enter a number less than previous. Exercise 2: • Create a program that asks for positive numbers indefinitely. The program ends when a negative number is entered. Finally the program shows the sum of all numbers entered SOLUTIONS The exercises should be done using exclusively the concepts seen until video 11 of the course. Remember that "In programming there are always several ways to get to Rome." The Solutions proposed below are valid, but not the only possible ones. Maybe you programs work with different codes.

15th Apr 2020, 12:32 AM
Dracksboy
Dracksboy - avatar
1 ответ
+ 1
Hay Dracksboy bro . Please use this section just for solving code related problems. Please don't give task here . This que should go in your feed section. https://www.sololearn.com/Discuss/1316935/?ref=app
15th Apr 2020, 12:56 AM
Ayush Kumar
Ayush Kumar - avatar