Write a program print half pyramid star
#include<iostream>
using namespace std;
int main()
{
int i,j,row,column;
cout<<"enter the row: ";
cin>>row;
cout<<"enter the column: ";
cin>>column;
for(i=1; i<=row; i++)
{
for(j=1; j<=column; j++)
{
if(j<=i)
cout<<"*";
else
cout<<" ";
}
cout<<"\n";
}
return 0;
}