Computer Science, asked by parisharma34500, 9 months ago

write a c program to find the given number is prime or not?

Answers

Answered by RishiAEC
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 Itzgaurav
0

Answer:

refer to the attachment

Attachments:
Similar questions