WAP to input
a number and check that number
is Prime number or not
Answers
Answered by
36
If num is divisible, flag is set to true and we break out of the loop. This determines num is not a prime number. If num isn't divisible by any number, flag is false and num is a prime number.
Answered by
1
Answer:
num/2) . If num is divisible, flag is set to true and we break out of the loop. This determines num is not a prime number. If num isn't divisible by any number, flag is false and num is a prime number.
Explanation:
Mark me as brainlest please
Similar questions