#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n ;
for(int i=1 ; i <= n ; i++){
for(int j=i ; j < n; j++){
printf(" ");
}
for(int j=1 ; j <= i*2-1 ; j++){
printf("*");
}
printf("
");
}
return 0;
}
/**
*
***
*****
*******
*/
#include <iostream>
using namespace std;
int main()
{
int rows;
cout << "Enter number of rows: ";
cin >> rows;
int i = 1;
while(i <= rows)
{
int j = 1
while(j <= i)
{
cout << "* ";
j++
}
cout << "
";
i++;
}
return 0;
}