C++ Program to generate Triangle
#include
#include
#include
void main()
{
int i,j,num,c;
clrscr();
cout<<"Enter number:-";
cin>>num;
cout<
{
cout<
for(j=1;j<=1;j++)
{
cout<
c=c+2;
cout<<"\n";
}
getch();
}
Program Material for BCA, MCA and Engineering Students. You will find Programs for C, C++, JAVA, COBOL, Assembly, OOAD, Unix/Linux, Data Structure Programs, Computer Graphics and more...
#include
#include
#include
void main()
{
int i,j,num,c;
clrscr();
cout<<"Enter number:-";
cin>>num;
cout<
{
cout<
for(j=1;j<=1;j++)
{
cout<
c=c+2;
cout<<"\n";
}
getch();
}