Basic Programming Exercises

📅 09 May 2019 ⏱️ 17 min 🎥 YouTube 🇪🇸 Spanish Version 💬 0

1 – Enter 2 numbers via keyboard and display all even numbers on the screen

2 – Write a program that prints perfect numbers between 1 and n. A number is perfect when it is equal to the sum of its divisors; Example 1+2+3 = 6

3 – Prompt for a name via keyboard and keep repeating until "NetMentor" is entered

4 – The previous 3 exercises must be inside a menu; and then perform the necessary actions. Notes: Remember to add an option to exit the program. Use functions.

This post was translated from Spanish. You can see the original one here.
If there is any problem you can add a comment below or contact me in the website's contact form.


💬 Comments