Untitled
Anonymous
c_cpp
11/16/2023 4:57 PM
272 B
17
Indexable
#include <iostream>
using namespace std;
int main() {
int w, a = 0;
cin >> w;
for (int i = 0; i < (w + 1); i++) {
for (int j = 0; j < i; j++) {
cout << '*';
}
cout << endl;
}
}Editor is loading...
Leave a Comment