You are on page 1of 1

#include<iostream.

h>
#include<stdlib.h>
#include<iomanip.h>
main()
{
int e,w,q,r=1;
cout<<"ucken yapma programi"<<endl;
cout<<"dik kenar nekadar olsun"<<endl;
cin>>q;
for(w=0;w<q;w++)
{if(w==0)
cout<<"*"<<endl;
cout<<"*"<<setw(r)<<"*"<<endl;
r++;
if(w==q-1)
{for(e=0;e<q+1;e++)
cout<<"*";
cout<<endl;}
}
system("PAUSE");
return 0;
}

You might also like