Live Coding

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

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

3 – Ask for a name via keyboard and repeat until we enter "NetMentor"

4 – The previous 3 exercises must be inside a menu; then perform the necessary actions. Notes: Remember to make 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é