Advertisement
sellmmaahh

OR-tut4-zad3.1

Aug 6th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n, i;
  5. printf("Unesite broj n: ");
  6. scanf("%d", &n);
  7. for (i=n; i>=1; i--) {
  8.         if (i%5==0 || i%7==0 || i%11==0) printf("%d\n", i);
  9. }
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement