Advertisement
elena_gjorgjioska

Untitled

Oct 22nd, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int n,k,x,i=0,br;
  7.     scanf("%d %d",&n,&k);
  8.     br=0;
  9.     while(i<n)
  10.     {
  11.         scanf("%d",&x);
  12.         if(x%k==0)
  13.         {
  14.             br++;
  15.         }
  16.         i++;
  17.     }
  18.     printf("%d",br);
  19.         return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement