ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Problem statement__________________________________________________________________
#include<iostream.h>
int main()
{
int i,j,sp,x=1;
for(i=1;i<=4;i++,x+=2)
{
for(sp=1;sp<=4-i;sp++) cout<<" ";
for(j=1;j<=x;j++)
{
if(i>1&&i<4&&j>1&&j<x)
cout<<" ";
else
cout<<"*";
}
cout<<endl;
}
return 0;
} Out Put

More Related Content

Prog