Discussions

Algorithm-OUTPUT OF THE

+
0 Votes
Locked

Algorithm-OUTPUT OF THE

saemmt
WHAT WILL BE THE OUTPUT USING 1,3,2,2,4,5,6,2,0?


value=0
new value=0
input value
input next_value
WHILE new_value is not equal to zero DO
IF new_value is greater than value
THEN value is equal to new_value
ENDIF
input next_value
ENDWHILE
output value