Write a program to display number pattern 1

//this is a program to display number pattern
#include<iostream>
#include<conio.h>

using namespace std;

int main()
{
int i,j;

cout<<"\n\nDisplaying the number pattern: \n\n";

for(i=1;i<=4;i++)
{
cout<<"\n";
for(j=1;j<=i;j++)
{
cout<<" "<<j;
}

}

return 0;

}

Previous
Next Post »