Question: Convert the WHILE program below into MikroOne code. So create a MicroOne program with the same semantics. a := 23; b := 3; q :=
Convert the WHILE program below into MikroOne code. So create a MicroOne program with the same semantics.
a := 23;
b := 3;
q := 0;
r := 0;
while a 0 do
r := a;
q := q + 1;
a := a b; //CAUTION! WHILE programs cut off when falling below 0
end // MicroOne programs won't do that!
q := q 1;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
