Determining the final values of a, b, and c.
Determining the final values of a, b, and c.
Rate Determining the final values of a, b, and c.
(2(2 Vote))
a = 2
b = 4
c = 10
while c > 6
perform changeBAndC()
endwhile
if a = 2 then
perform changeAAndB()
endif
if c = 10 then
perform changeAAndB()
else
perform changeBAndC()
endif
print a, b, c
stop
changeBAndC()
b = b + 1
c = c - 1
return
changeAAndB()
a = a + 1
b = b - 1
return
Determining the final values of a, b, and c. Comments
No comments yet — be the first to post one!
Post a Comment