C Program to Check Whether a Number is Prime or Not
Example to check whether an integer (entered by the user) is a prime number or not using for loop and if...else statement.
To understand this example, you should have the knowledge of following C programming topics:
- C if, if...else and Nested if...else Statement
- C Programming for Loop
- C Programming break and continue Statement