Computer Science, asked by bishnuboy10285pe4dzb, 5 months ago

Find the output of the following code:

A,C,B=100,200,30

A%=6

B=C//B

print(“Values of A,B,C respectively are = ”,A,B,C)​

Answers

Answered by Anonymous
0

 {\boxed{\underline{\purple{\bf\tt{Code:} } }}}

A,C,B=100,200,30

A%=6 #A=A%6

B=C//B

print("Values of A,B,C respectively are =" ,A,B,C)

 {\boxed{\underline{\purple{\bf\tt{Evaluation:} } }}}

A%=6 means A=A%6

So, A= 100%6(remainder) = 4

NOW, B= C//B = 200//30(quotient) = 6

 {\boxed{\underline{\purple{\bf\tt{Output:} } }}}

Values of A,B,C respectively are = 4 6 200

Similar questions