#include <iostream>
#include <stdlib.h>
using namespace std;
int main () {
for (int i=0; i<4; i++) {
for (int j=0; j<3-i; j++)
cout<<" ";
for (int k=0; k<i+1; k++)
cout<<"* ";
cout<<endl;
}
system("pause");
return 0;}
Comments
Leave a comment