निम्नलिखित का आउटपुट क्या होगा छद्म कोड?
What will be the output of the following pseudo code ?
Integer a, b
Set a = 10, b = 5
a = a mod (a - 6)
b = b mod (b - 2)
Print a – b
A)
B)
C)
D)
Explanation:
Sure!
a = 10 mod (10 - 6) = 10 mod 4 = 2
b = 5 mod (5 - 2) = 5 mod 3 = 2
- Then,
a - b = 2 - 2 = 0
.
Answer: (B) 0.