#include<iostream> using namespace std; int main() { int i; int j = 0; while(cin>>i) { for(int n = 1; n < i + 1; n++) { j = 0; while(j != n) { cout<<"* "; j++; } cout<<endl; } } return 0; }
#include<iostream> using namespace std; int main() { int i; int j = 0; while(cin>>i) { for(int n = 1; n < i + 1; n++) { j = 0; while(j != n) { cout<<"* "; j++; } cout<<endl; } } return 0; }