Computer Science, asked by milandas1md, 8 months ago

w
Write a program in C
to display the following pattern
1
12
1 2 3 4
1 2 3 4 5​

Answers

Answered by pallavi89
1

Answer:

class a

{

public static void main ()

{

int i

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

{

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

System.out.print( j);

System.out.print();

}

}

}

Similar questions