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