x=300 ,y=17 then x%=y in python print (x)
Answers
Answered by
1
Answer:
11
Explanation:
x%=y means x=x%y
so the answer of 300%17 is to be stored in x and printed.
Answered by
3
Answer:
11 will be printed.
Explanation:
We have x=300
y=17
x%=y is short hand notation for x=x%y.
% operator is called modulus operator.It returns the remainder.x%y will return the remainder that will come when x is divided by y.
So on dividing the 300 by 17 the quotient will be 17 and the remainder will be 11 and the remainder will get stored in x.
Hence the print statement will print 11.
Similar questions