Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- int n,i;
- bool deliv=false;
- printf("Vnesi priroden broj ");
- scanf("%d",&n);
- for (i=n+1;;i++)
- {
- if (i%3==0) deliv=true;
- if (deliv==true && i%100==2)
- {printf("Prviot broj deliv so 3 pogolem od %d e %d",n,i);break;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement