Skip to main content
ProwessApps
Learn · Practice · Excel
Tutorials
C Programming
C++
Java
Python
Programs
Videos
Coding Ground
Practice
Coding Practice
Skill Assessment
Tools
Login / Register
ProwessApps
Learn · Practice · Excel
Tutorials
C Programming
C++
Java
Python
Programs
Videos
Coding Ground
Practice
Coding Practice
Skill Assessment
Tools
About
Contact
Login / Register
Home
Programs
Java
Pattern Programs
Pattern Programs
12 Code Examples in Java
ADVERTISEMENT
Write a program to print the following pattern:
*
**
***
****
*****
Write a program to print the following pattern:
*
* *
* * *
* * * *
* * * * *
Write a program to print the following pattern:
A
A B
A B C
A B C D
A B C D E
Write a program to print the following pattern:
1
121
12321
1234321
Write a program to print the following pattern:
1
21
123
4321
12345
Write a program to print the following pattern:
1234321
12321
121
1
Write a program to print the following pattern:
0
1 0
0 1 0
1 0 1 0
0 1 0 1 0
Write a program to print the following pattern:
*
***
*****
***
*
Write a program to print the following pattern:
2
4 6
8 10 12
Write a program to print the following pattern:
1
3 3
5 5 5
7 7 7 7
Write a program to print the following pattern:
1
2 3
4 5 6
7 8 9 10
Write a program to print the following pattern:
1
1 1
1 2 1
1 3 3 1
ADVERTISEMENT
Install ProwessApps
Faster access to tutorials
Not now
Install