Shoaib

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

#include <iostream>

using namespace std;


int main()
{
int column=0;
int row=0;

while(row<=4)
{
while(column<row)//replace with<= to get 1st quad triangle

{cout<<"a";
column++;
}
while(column<5)//replace with<= to get 1st quad triangle
{
cout<<"*";
column++;
}
cout<<endl;
row++;
column=0;

}
return 0;
}

You might also like