Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int x,y,z;
- //scanf("%d",&x);
- for(int x = 1; x <= 100; x++)
- {
- printf("%d is: ",x);
- if((x%2==1 && x%3==1) || (x%2==1 && x%3==2))
- {
- printf("prime");
- }
- else
- {
- printf("Not prime");
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement