I am trying to print a reverse right angle triangle

#include

using namespace std;

int main()
{
int row, column, n;
cin >> n;
for (row = n; row >= 1; row–)
{
for (column = n; column >=n-row; column–)
{
cout << “*”;
}
cout<< endl;
}
cout << endl;

return 0;

}

every time i am giving input it is printing an extra star in first and one less in the end…this is fully not based on this pattern but it is realted to this…can you correct my code please

hey @akshat42bajpai your code isn’t readable here, You can share this code using ide.codingblocks.com

image

  • A special url will be generated, share that url with me

Screenshot 2021-03-10 at 11.17.37 AM

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.