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
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
Math,
6 months ago
Science,
6 months ago
India Languages,
1 year ago
English,
1 year ago
Computer Science,
1 year ago
Business Studies,
1 year ago