Report Bug
Qus :

What will be the output of the following pseudo code?

integer a,b
set a=9,b=5
a=a mod(a-3)
b=b mod(b-3)
print a+b

Qus

निम्नलिखित सूड़ो कोड का आउटपुट क्या होगा?

integer a,b
set a=9,b=5
a=a mod(a-3)
b=b mod(b-3)
print a+b


A. 4
B. 5
C. 9
D. 8


Solution
A. 4



Explanation

set a=9,b=5

a=a mod(a-3)   #9%6=3

b=b mod(b-3)   #5%2=1

print a+b           #3+1=4




Report Bug