ceu-notes/1/FH/assignments/t1-ej13.txt

52 lines
500 B
Plaintext
Raw Normal View History

2021-11-10 17:59:57 +00:00
1)
Operaciones:
c = a{9} + b{2} = 11
d = c{11} - a{9} = 2
a = a{9} / 3 = 3
b = b{2} * b{2} = 4
Resultados:
a = 3
b = 4
c = 11
d = 2
2)
Operaciones:
d = 0
b = b{45} * d{0} = 0
a = a{16} / 4 = 4
2021-11-22 14:12:13 +00:00
d = c{24} / a{4} = 2
2021-11-10 17:59:57 +00:00
Resultados:
a = 4
b = 0
c = 24
2021-11-22 14:12:13 +00:00
d = 6
2021-11-10 17:59:57 +00:00
3)
d = c{0} * a{26} = 0
si d{0} = 0
goto ins4
d = b{45} * a{26} # saltada
ins4: d = c{0} * b{45} = 0
a = 26
b = 45
c = 0
d = 0
4)
si a > 4
goto ins5
a = a + 1
b = b + a
goto ins1
ins5: b = b * b
a = 5
b = 256
c = 9546351681
d = 123487890