Consider the following pseudo code, where \(x\) and \(y\) are positive…
GATE · 2015 · CS · Set 1 · Computer Science & IT
Consider the following pseudo code, where and are positive integers.
begin
q := 0
r := x
while r ≥ y do
begin
r := r - y
q := q + 1
end
endThe post condition that needs to be satisfied after the program terminates is
- A.
- B.
- C.
- D.
Attempted by 383 students.
Sign up free to check your answer
Sign up freeLoading lesson…