hey there, i need help solvings my lab assignment in chapter 5: control structure II (repetition)
- write a program that:
a. prompt the user to enter an integer number x greater than 1.
b. use a flag-controlled while loop to check whether the entered number x is prime or not. (a number is said to be prime if it is divisible only by 1 and by itself).
HINT: continue divising x until either the reminder is zero or you exceed x/2.
- use a nested loop (for and while) to display all prime numbers less than 100.