Computer Science, asked by singhsabita090, 1 month ago



WAP to input
a number and check that number
is Prime number or not

Answers

Answered by BIackHeart
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 vishskha29gmailcom
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