Math, asked by Redemption19, 10 months ago

Describe what the following algorithm do or does not do?
a) Procedure (divide n: positive integer)
while
begin


end

b) Procedure (sum n: positive integer)
sum : = 0
while i < 10
sum : = sum + i

Answers

Answered by justletitgo
0

Answer:

Step-by-step explanation:

in a) the algorithm really do nothing. It just write the "begin" code and "end" code. When you run it will end instant.

in b) the algorithm is born to plus 0 with the numbers from 1-9(integer).

Hope it can help. Btw you should post this on Computer Science

Similar questions