Advertisement
Josif_tepe

Untitled

May 22nd, 2024
471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     for(int n = 10; n > 0; n--)
  7.     {
  8.         cout << n << ",";
  9.         if(n == 7)
  10.         {
  11.             break;
  12.         }
  13.     }
  14.    
  15.  
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement