Advertisement
Josif_tepe

Untitled

Sep 2nd, 2022
1,112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4.  
  5. int main() {
  6.    
  7.     for(int i = 3; i <= 1000; i++) {
  8.         if(i % 3 == 0) { // ostatokot pri delenje na brojot i so 3 e ednakov na 0
  9.             printf("%d ", i);
  10.         }
  11.     }
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement