Computer Science, asked by subhamgoswami020, 4 months ago

Write a program to print the following :-

1

12

123

1234

12345​

Answers

Answered by sureshpatel3635
0

Explanation:

/* Program to display the following pattern:

1

12

123

1234

12345

*/

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

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

{

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

cout<<j;

cout<<endl;

}

getch();

}

Similar questions