Loop4

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Write program to print the following patterns .

Pattern should be scalable, if input


(number of lines) is 5 then the output should be.
Qn1.

1 Qn3. Qn5.
0 1 A A
1 01 A*B B*B
0 101 A*B*C C***C
1 0101 A*B*C*D D*****D
A*B*C*D*E E*******E
Qn2.
Qn6.
***** Qn4. 55555
**** A ****
*** BC 333
** DEF **
* GHIJ 1
KLMNO

If input is 3 then , write program to print the following patterns


Qn7.
**** Qn8. Qn 9.
*** * AAAA
** * * BBB
* *** CC
** * * * * D
*** *** CC
**** * * B BB
* AAAA
Qn10.
Qn11.
1234321 *******
123 321 *** ***
12 21 ** **
1 1 * *
** **
*** ***
*******

You might also like