How to print numeric pyramid in C++ Program

CWC
0 Min Read

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;
}
Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version