How to print numeric pyramid in C++ Program
# include
#include
# include
using namespace std;
main()
{
int i,j;
for(i=1;i<=5;i++)
{ for(j=1;j<=i;j++)
cout<<j;
cout<<"\n";
}
return 0;
}
The Way to Programming
How to print numeric pyramid in C++ Program
# include
#include
# include
using namespace std;
main()
{
int i,j;
for(i=1;i<=5;i++)
{ for(j=1;j<=i;j++)
cout<<j;
cout<<"\n";
}
return 0;
}