Write a program to print different type of pattern
1. Floyds triangle pattern
Input: 3
1 2 34 5 6
12 34 5 6
2. Triangle in a pyramid shape
** ** * ** * * ** * * * ** * * * * ** * * * * * *
3. Print Reverse Triangle
Java
* * * * ** * * ** * ** **
4. Print Square Pattern number row-wise
Java
1 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 45 5 5 5 5
5. Print triangle
** ** * ** * * ** * * * *
6. Print square pattern* * * * ** * * * ** * * * ** * * * ** * * * *
6. Print square pattern
* * * * ** * * * ** * * * ** * * * ** * * * *
7. Print triangle left to right** ** * ** * * ** * * * ** * * ** * ** **
** ** * ** * * ** * * * ** * * ** * ** **
No comments:
Post a Comment