Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n,i=2,q;
- printf("N=");
- scanf("%d",&n );
- printf("q=");
- scanf("%d",&q );
- printf("Brojevi deljivi sa %d: ",q );
- while(i<=n)
- {
- if(i%q==0) printf("%d",i);
- if(i%q==0 && i>2 && i<n-1) printf(", ");
- i++;
- }
- printf("\n" );
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement