Computer Science, asked by mann928, 4 months ago

1 23 456 pattern in c++​

Answers

Answered by himanshu2006vps
1

Answer:

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int i,j,n=1;

for(i=1;i<=5;i++)

{

for(j=1;j<=i;j++)

{

cout<<n;

n++;

}

cout<<"\n";

}getch();

}

Explanation:

output:- 1

23

456

78910

please mark me as brainliest

Similar questions