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
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
Physics,
5 months ago
Math,
5 months ago
Computer Science,
5 months ago
Social Sciences,
11 months ago
Math,
1 year ago
Math,
1 year ago