Computer Science, asked by daleisipranjali, 6 months ago

Write the output of following code:

A,B=30,40

C=B%A

print(C)​

Answers

Answered by andhadhun
1

Answer:

% gives remainder

so 40%30 = 10

C =10

OUTPUT:

10.

Answered by Anonymous
0

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

A,B=30,40

C=B%A

print(C)

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

C=B%A= 40%30= 10(remainder when 40 divided by 30)

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

10

Similar questions