Hey Guys can someone help how to make 2 litle Console Application i need it for school

"HOMEWORK" on DevC++ Cproject
1.To write a program that prints all primes! The program contains an endless loop and ends with a violent off!
2.To develop a simulation of ATM machine (ATM) with the following characteristics:
• Input username (1111) and PIN (2222)
• If the combination is correct inputed program continues
• Main Menu: Upload funds, provide money, check account, output
• Menu for raising money: 500, 1000, 2000, 5000, 10000, undo.
• Input money: It inserts the correct value
• Checking account: to print the balance
• Exit: terminates the program execution
