What is the value of r after this code is executed?

1.6 What is the value of r after this code is executed?
r=2;
k=8;
if (r>3 || k>6 && r<5 ||k>10)
r=9;
else
r=6
A) 9
B) 2
C) 6
D) 8


Leave a Reply