Consider the following pseudo code, where \(x\) and \(y\) are positive…
PYQ GATE 2015
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 466 students.
Sign up free to check your answer
Sign up freeLoading lesson…

