Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ?? ?????????? ???? ?? ?????? ??? ?????? n ? ?, ?? ????????? n ????? ?? ???? ?? ???? ??? ????.?? ?? ???????? ????? ?? ??????????? ?????? ?? ?????? ?? k.
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int n,k,x,i;
- printf("Vnesete dva celi broevi n i k\n");
- scanf("%d%d", &n, &k);
- int br=0;
- for(i=1;i<=n;i++)
- {
- printf("Vnesete go n redniot broj \n");
- scanf("%d", &x);
- if(x%k==0)
- {
- br++;
- }
- }
- printf("delivi so k se: %d", br);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement