Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- //n i m
- int main ()
- {int n,m,i,brojac=0,broj;
- scanf("%d",&n);
- scanf("%d",&m);
- for (i=0;i<n;i++)
- { scanf("%d",&broj);
- if(broj%m==0)
- {
- brojac++;
- }
- printf("%d\n",brojac);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment