SHARE
TWEET

Untitled

a guest Jan 21st, 2020 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. main()
  3. {
  4.     int pin[10],pin1[10],i,j,ar=0;
  5.     for (i=0;i<10;i++)
  6.     {
  7.     pin[i]=0;
  8.     pin1[i]=0;
  9.     }
  10.         for (i=0;i<10;i++)
  11.         {
  12.             scanf("%d",&ar);
  13.             if (ar%2==0)
  14.             {pin[i]=ar;
  15.             }
  16.                 else
  17.                 {pin1[i]=ar;
  18.                 }  
  19.         }
  20.     for (i=0;i<10;i++){
  21.     printf("%d\n",pin[i]);}
  22.     printf("\n");
  23.     for (i=0;i<10;i++)
  24.     printf("%d\n",pin1[i]);
  25.     return 0;
  26. }
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