-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathok4.out
82 lines (82 loc) · 933 Bytes
/
ok4.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
string c
int length
label L0
print "Length: \n"
read length
t0 = length <= 40
if not t0 goto L2
print "character to draw:\n"
read c
int a
a = 0
label L3
t1 = length - 2
t0 = a < t1
if not t0 goto L4
int b
b = 0
label L5
t2 = length - a
t1 = t2 - 1
t0 = b < t1
if not t0 goto L6
print " "
t0 = b + 1
b = t0
goto L5
label L6
b = 0
label L7
t2 = 2 * a
t1 = t2 + 1
t0 = b < t1
if not t0 goto L8
print c
t0 = b + 1
b = t0
goto L7
label L8
print "\n"
t0 = a + 1
a = t0
goto L3
label L4
t0 = length - 4
a = t0
label L9
t0 = a >= 0
if not t0 goto L10
int d
d = 0
label L11
t2 = length - a
t1 = t2 - 1
t0 = d < t1
if not t0 goto L12
print " "
t0 = d + 1
d = t0
goto L11
label L12
b = 0
label L13
t2 = 2 * a
t1 = t2 + 1
t0 = b < t1
if not t0 goto L14
print c
t0 = b + 1
b = t0
goto L13
label L14
print "\n"
t0 = a - 1
a = t0
goto L9
label L10
goto L1
label L2
print "Number should be smaller than 41\n"
label L1
t0 = length > 40
if t0 goto L0