0% found this document useful (0 votes)
2 views2 pages

Pattern Programs

The document contains a list of ten Java programming tasks, each requiring the creation of a program to print a specific numerical pattern. The patterns vary in complexity and structure, including sequences of numbers, repetitions, and alternating arrangements. Each task is clearly numbered and describes the desired output format.

Uploaded by

gourikrish2004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Pattern Programs

The document contains a list of ten Java programming tasks, each requiring the creation of a program to print a specific numerical pattern. The patterns vary in complexity and structure, including sequences of numbers, repetitions, and alternating arrangements. Each task is clearly numbered and describes the desired output format.

Uploaded by

gourikrish2004
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Write a Java program to print the following pattern:

1
1 2
1 2 3
1 2 3 4

2. Write a Java program to print the following pattern:

1
2 3
4 5 6
7 8 9 10

3. Write a Java program to print the following pattern:

1 2 3 4
1 2 3
1 2
1
4. Write a Java program to print the following pattern:

1
2 2
3 3 3
4 4 4 4

5. Write a Java program to print the following pattern:

1
2 1
3 2 1
4 3 2 1

6. Write a Java program to print the following pattern:

1
1 0
1 0 1
1 0 1 0

7. Write a Java program to print the following pattern:

1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
8. Write a Java program to print the following pattern:

5
5 4
5 4 3
5 4 3 2
5 4 3 2 1

9. Write a Java program to print the following pattern:

1
3 2
4 5 6
10 9 8 7
11 12 13 14 15

10. Write a Java program to print the following pattern:

1
2 3
6 5 4
7 8 9 10
15 14 13 12 11

You might also like