Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. int main ()
  3. {
  4. int n, m, k, a;
  5.  
  6. printf("Podaj n "); scanf("%d",&n);
  7. printf("Podaj m "); scanf("%d",&m);
  8. printf("Podaj k "); scanf("%d",&k);
  9.  
  10. a=n;
  11.  
  12. while(a<k)
  13. {
  14. if(a>m)
  15. {
  16. printf("%d, ", a);
  17. a+=n;
  18. }
  19.  
  20. else
  21. {
  22. a+=n;
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement