Untitled
Anonymous
plain_text
11/16/2023 5:01 PM
312 B
24
Indexable
#include <iostream>
using namespace std;
int main()
{
int w;
cin >> w;
for (int i = 1; i <= w; i++) {
for (int j = 0; j < i; j++) {
cout << '*';
}
cout << '\n';
}
}
Editor is loading...
Leave a Comment