Advertisement
Josif_tepe

Untitled

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