GATEverse
← GATE CSE 1991

Q1,vi

NATMarks unknown

Consider the following PASCAL program segment: if i mod 2 = 0 then while i >= 0 do begin i := i div 2; if i mod 2 < > 0 then i := i - 1; else i := i – 2; end; An appropriate loop-invariant for the while-loop is ________

Sign in to save attempts.

Loading…