For programmers, testers and tech geeks

Create reverse triangle using nested loop in c++

#include<iostream>
#include<conio.h>
using namespace std;

int main()
{
int i,j,k;
for(i=5;i>=1;i--)
{
for(j=5;j>i;j--)
cout<<" ";
for(k=1;k<2*i;k++)
cout<<"*";
cout<<endl;
}
getch();
}