Advertisement
H0_0H

Untitled

Dec 2nd, 2021
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. typedef long long LL;
  4.  
  5. void fun(int line){
  6.     while (line > 0){
  7.         string s = "";
  8.         for (int i = 0; i < line; i++)
  9.             s += "*";
  10.         cout << s << endl;
  11.         line--;
  12.     }
  13. }
  14.  
  15. int main(){
  16.     int line = 10;
  17.     fun(line);
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement