Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i,n;
- printf("Enter The positive number");
- scanf("%d",&n);
- for(i=2;i<=2;i++)
- {
- if(n%i==0)
- {
- break;
- }
- }
- if(n==i)
- printf("The number is prime");
- else
- printf("The number is not Prime");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement