Program to print Full Mountain Shape Pattern.



#include<iostream>
using namespace std;
int main()
{
for(int i=1;i<=6;i++)
{
cout<<endl;
for(int s=1;s<=6-i;s++)
cout<<" ";
for(int j=1;j<=i;j++)
if(j==1)
cout<<"*";
else
cout<<"**";
}
return 0;
}

By Ayush Gupta, Student

Comments