Guest User

Untitled

a guest
Apr 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1.     int A[] = {1,2,3,4};
  2.     int B[sizeof(A)/sizeof(A[0])];
  3.     int index=0;
  4.     for(int i=0;i<theSize;i++)
  5.     {
  6.         if(A[i] < 3)
  7.         {
  8.             B[index]=A[i];
  9.             index++;
  10.         }
  11.     }
  12.     /*show the numbers*/
  13.     for(int i=0;i<index;i++)
  14.     printf("num:%d\n",B[i]);
Add Comment
Please, Sign In to add comment