Advertisement
Josif_tepe

Untitled

Dec 29th, 2023
822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     int n = 24;
  8.     int k = 7;
  9.     for(int i = n - 1; i >= n - k; i -= 1) {
  10.         cout << i << endl;
  11.     }
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement