Computer Science, asked by lavanyapunjala14, 3 months ago

what is the output for this plz answer me fast i will mark as brilliant

Attachments:

Answers

Answered by ahladp
0

Answer:

14

Explanation:

% operator returns the remainder when first operand is divided by the second.

In this case, n%10 returns 2 as 2 is the remainder when 12 is divided by 10.

=> r = 2

s = r + n

=> s = 12+2 = 14 by substituting values of r and n

The output is 14.

Similar questions