Advertisement
ghifarazka

segitiga

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