SHARE
TWEET

Untitled

a guest Feb 27th, 2020 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int x,y,z;
  5.     //scanf("%d",&x);
  6.     for(int x = 1; x <= 100; x++)
  7.     {
  8.         printf("%d is: ",x);
  9.         if((x%2==1 && x%3==1) || (x%2==1 && x%3==2))
  10.         {
  11.             printf("prime");
  12.         }
  13.  
  14.         else
  15.            {
  16.                 printf("Not prime");
  17.            }
  18.         printf("\n");
  19.     }
  20.  
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top