SADWASDADSaD SADWASDADSaD
  • 16-07-2020
  • Computers and Technology
contestada

Consider the following code: x = 17 y = 5 print (x % y) What is output?

Respuesta :

tonb
tonb tonb
  • 16-07-2020

Answer:

2

Explanation:

The modulo operator returns the remainder after integer division.

17 / 5 has integer result 15 and remainder 2

Answer Link

Otras preguntas

is freight have long a sound
Which structure controls the amount of light that enters the eye
What are four equivalent expression of 36-9
what do you call a field where animals live
on a coordinate plane, the vertices of a rectangle are (2,4), (2,-1), (-5,-1) and (-5,4). What is the perimeter of the rectangle?
One bottle of paint can cover 20 tiles. You have 348 tiles. How many bottles of paint do you need to cover 348 tiles
Juan always saves the same amount from his weekly allowance. The table shows how much he has saved at different times. Which equation represents the situation?
Which place depended on annual flooding to produce a constant surplus of food? A. Egypt B. Mesopotamia C. Both D. Neither
what is the 4,305,012 written in expanded notation
Suffrage Means... A. that suffering is the same for all people B.that some people have to suffer more than others C.that only men should be able to vote D.that