write a c program to find the given number is prime or not?
Answers
Answered by
3
Answer:
C Program to Check Whether a Number is Prime or Not
Program to Check Prime Number Enter a positive integer: 29 29 is a prime number. In the program, a for loop is iterated from i = 2 to i < n/2 . In each iteration, whether n is perfectly divisible by i is checked using: if (n % i == 0) {
Answered by
0
Answer:
refer to the attachment
Attachments:
Similar questions