Input : Enter how many line you need to make pyramid = 4
Output :-
1 0 1 0
0 1 0
1 0
0
/////////////////////////////////////////////////////////////////////////////////////////////
Input : Enter how many line you need to make pyramid = 6
Output :-
1 0 1 0 1 0
0 1 0 1 0
1 0 1 0
0 1 0
1 0
0
/////////////////////////////////////////////////////////////////////////////////////////////
Input : Enter how many line you need to make pyramid = 3
Output :-
1 0 1
0 1
1
/////////////////////////////////////////////////////////////////////////////////////////////