answersLogoWhite

0


Best Answer

import java.io.*;

class pattern

{

void main() throws IOException

{

int i,j;

BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

System.out.print("Enter n terms");

i=Integer.parseInt(br.readLine());

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

{

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

{

System.out.print(j);

}

System.out.println();

}

}

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

9y ago

0

101

21012

3210123

432101234

54321012345

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

int x;

for (x=1; x<=13; ++x)

System.out.print(y);

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Java program to print the following pattern 1 234 56789 101112 13?
Write your answer...
Submit
Still have questions?
magnify glass
imp