English, asked by ggghh21, 10 months ago

write a prgrm to check a no is prime or not.​

Answers

Answered by Rajputsaurabhsingh
0

____________#¥___________

Example: Program to Check Prime Number

Example: Program to Check Prime NumberEnter a positive integer: 29 29 is a prime number. If the for loop terminates when the test expression of loop i <= n/2 is false, the entered number is a prime number. The value of flag is equal to 0 in this case......

The task is to write a C program to check if the number is prime or not. Definition: A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. The first few prime numbers are {2, 3, 5, 7, 11, ….}...

Answered by Anonymous
2

hope it helps u. . . . . . . .

Attachments:
Similar questions