Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- typedef long long LL;
- void fun(int line){
- while (line > 0){
- string s = "";
- for (int i = 0; i < line; i++)
- s += "*";
- cout << s << endl;
- line--;
- }
- }
- int main(){
- int line = 10;
- fun(line);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement