#include<iostream>
using namespace std;
int main()
{
cout << "Enter number of rows :";
int num;
cin >> num;
for (int i = 0; i < num; i++)
{
for (int j = num -i-1; j > 0; --j)
cout << ".";
for (int k = 1; k <= i+1; k++)
cout << "*";
cout << endl;
}
return 0;
}
打印星号0。0