Untitled
unknown
plain_text
2 years ago
234 B
7
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