Q=1:draw a pattern of square using stars(*)
Q=2:Draw this pattern:-
*
* *
* * *
* * * *
Q=3:Take N (number of rows), print the following pattern (for N = 5)
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Q=4:Take N (number of rows), print the following pattern (for N = 5)
1
2 2
3 0 3
4 0 0 4
5 0 0 0 5
Q=5:Fibonacci Pattern
0
1 1
2 3 5
8 13 21 34
Q=6:Draw this pattern for N=5
*
* * *
* * * * *
* * *
*
Q=7:Take N (number of rows), print the following pattern (for N = 4)
1
2 3
4 5 6
7 8 9 10
Q=8:Take N (number of rows), print the following pattern (for N = 5)
* * * * *
* * * *
* *
* * * *
* * * * *
Q=9:Take N (number of rows), print the following pattern (for N = 4)
1
2 3 2
3 4 5 4 3
4 5 6 7 6 5 4
Q=10:Take N (number of rows), print the following pattern (for N = 3)
1
2 3 2
3 4 5 4 3
2 3 2
1
Q=11:Take N (number of rows), print the following pattern (for N = 4).
1 1
1 2 2 1
1 2 3 3 2 1
1 2 3 4 3 2 1
Q=12: Enter a input (ex 3) then print
3 3 3 2 2 2 1 1 1
3 3 2 2 1 1
3 2 1