Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5. int n,i;
  6. bool deliv=false;
  7. printf("Vnesi priroden broj ");
  8. scanf("%d",&n);
  9. for (i=n+1;;i++)
  10. {
  11. if (i%3==0) deliv=true;
  12. if (deliv==true && i%100==2)
  13. {printf("Prviot broj deliv so 3 pogolem od %d e %d",n,i);break;}
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement