Computer Science, asked by dangerousiron, 9 months ago

#include #include void main() { clrscr(); int a ,i ; i=2; printf("please enter a number and I will tell you if the number is prime number or not"); scanf("%d",&a); if(a%i==0) { printf("%d is not a prime number",a); } else { while(a%i!= 0||a==i) { ++i; } if(i!=a) { printf("%d is not a prime number",a); } if(i==a) { printf("%d is a prime number ",a); } } getch(); } // what is wrong in this program

Answers

Answered by deshdeepak88
2

Answer:

- #include #include void main() { clrscr(); int a ,i ; i=2; printf("please enter a number and I will ...

Make sure that all words are spelled correctly.

Make sure that all words are spelled correctly.Try different keywords.

Make sure that all words are spelled correctly.Try different keywords.Try more general keywords.

Make sure that all words are spelled correctly.Try different keywords.Try more general keywords.Try fewer keywords.

Explanation:

hope this will help you.

please mark it as brainliest.

Answered by lalita113651018
20

Answer:

.............................!!!!!!!!!!!!!!

Similar questions