WAP to enter a number and check and print if it's a composite number or not
Answers
Answered by
1
Answer:
Explanation:
The best way to figure out if it's a composite number is to perform the divisibility test. To do this, you should check to see if the number can be divided by these common factors: 2, 3, 5, 7, 11, and 13. If the number is even, then start with the number 2. If the number ends with a 0 or 5, try dividing by 5.
Similar questions