//this is a program to display number pattern 3
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int count=1,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<<" "<<count;
count++;
}
}
return 0;
}
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int count=1,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<<" "<<count;
count++;
}
}
return 0;
}