Advertisement
Josif_tepe

Untitled

Nov 26th, 2023
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     int brojac = 2;
  10.    
  11.     while (brojac <= 100) {
  12.         cout << brojac << " ";
  13.        
  14.         brojac += 2;
  15.     }
  16.    
  17.    
  18.  
  19.    
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement