Basic Programming Exercises

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 bellow or contact me in the website's contact form

© copyright 2025 NetMentor | Todos los derechos reservados | RSS Feed

Buy me a coffee Invitame a un café