josiftepe

Untitled

Jan 27th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.    
  6.     int pocetok = 1;
  7.     int kraj = 100;
  8.     while (pocetok <= kraj) {
  9.         cout << pocetok << endl;
  10.         pocetok += 2;
  11.     }
  12.     // 1 3 5 7 9 ...
  13.    
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment