14 Iteration Pattern Printing 2 Notes

You might also like

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

2

tanpainting

QI Wang

On numbed
Od digit 0,112in
10 digits

Q What's the mum formed after adding to the


end of number
es n

ans
1230
N E

QUI 03
32
II
convert

Quid N 325 3251 3 ans N or

d 1 so d to

gg
Quiz N 32

a
t d
Net Nt
n of N
Q2
Levert
ÉÉ rig
naoto
n 0

1 3
7 3 10 5 2350
print
the 13 10 32
10

III q
0
3

352 10 1 35 21

t
5 30 5
32g
while N 0

dig N Yolo d 2 7350 2 35


10 dig I 32241 322
pinetag
N N to

lot
to
dig
63 Pta
NIS
N 3

33

Find I
Epl no of rows
I

step Count no of spaces stars in each row

c
I c n
I y
2 A t 3 2

P
S
5 3 2 s 3
3
Xangell
4
FILM 4
1 5 4

now mum counts

Connect the login with code


Ey
outer loop rows

innerloop a cols Strange g


G range o
X range x

for in range 1 1

how w
many spaces
for in range N i
6 9
print end
how many stars i
for as in
range i

i
10 range lo a Coil 2 3,4 T G 3819

x rangeCx
is a variable
QU 2
Pafa like i j

N 3 Was

Rows N rows

Spaces stars in each row

N S C
C
I t 5 5 o
o l I
2 I 2 y 5 1

angst 3 s f

4 x 3 4 1 2 5 3

I S U

Relation btw i counts


Logic Code
Upper diamond
Og Pattern
N 3

n
Counts

gr
06 pattern 4 lower diamond N Y
N 3

67
Hodladia mond

1
i n
Cx C
I o 0 Y
y

g
Q
2 I 3 3
2
3 2 2 2
Y 3 I

It IIis It
for i in range l Nti

is print 2 i i spaces 2 for crop

na Cx
I 6 2
204 0
I
I
2 4 2 040
to 34 30
3 2 2
0
Y

Per i in range 1 Nti


a É
point i as
A paint 21N i spaces
paint i stars
Acuna optional
6 Pyramid

N 3

C c
I 3 4 1 1 261 1
2
2 4 2 3 2127 1
3 1 4 3 5
2637 1
Y O y y 7
2147 1
2 i I
O
InvertedPyfamid

N 3

I
6
starpatten

You might also like