Advertisement
Josif_tepe

Untitled

Mar 9th, 2023
735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int main()
  5. {
  6.     int n = 10;
  7.    
  8.     for(int i = n; i >= 1; i--) { // vaka pisuvame koga sakame forot da ni bide vo obratna nasoka
  9.         if(i % 2 == 1) {
  10.             cout << i << endl;
  11.         }
  12.        
  13.     }
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement