C++ Program to generate Triangle

#include
#include
#include
void main()
{
int i,j,num,c;
clrscr();
cout<<"Enter number:-";
cin>>num;
cout<for(c=2,i=num;i>0;i--)
{
cout<
for(j=1;j<=1;j++)
{
cout< }
c=c+2;
cout<<"\n";
}
getch();
}