Untitled
heunknown
c_cpp
2 years ago
218 B
5
Indexable
#include <iostream>
using namespace std;
int main()
{
int size, c = 0;
cin >> size;
for (int i = 0; i < (size + 1); i++) {
for (int j = 0; j < i; j++) {
cout << '*';
}
cout << "\n";
}
}
Editor is loading...
Leave a Comment