C++ program to print triangle pattern of number
C++ program to print triangle pattern of number
C++ program to print triangle pattern of number
#include<iostream> using namespace std; int main(){ int i,j; for(i=1;i<=5;i++){ for(j=1;j<=i;j++){ cout<<j<<" "; } cout<<endl; } return 0; }
OUTPUT:
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 -------------------------------- Process exited after 0.1148 seconds with return value 0 Press any key to continue . .…
View On WordPress










