joshuam2289 joshuam2289
  • 07-06-2021
  • Computers and Technology
contestada

What is the output of:

print (8 % 4)

Respuesta :

fichoh
fichoh fichoh
  • 12-06-2021

Answer:

0

Explanation:

The statement, print(8 % 4) will produce the output 0 ;

The print statement is an inbuilt function which is used to output a typed string or display result of a Mathematical calculation and so on.

The expression in the print statement gives 0;

8%4 means, the remainder when 8!is divided by 4 ; 8 /4 gives 2 without a remainder. Meaning that :

8%4 = 0

Hence, print(8 % 4) = 0

Answer Link

Otras preguntas

PLS HELP PLS ILL GIVE BRAINLKEST PLS THANKS
please answer as soon as possible​
Two bowling balls each have a mass of 6.8 kg. They are located next to each other with their centers 21.8 cm apart. What gravitational force do they exert on ea
-x+y= -5 x and y intercept
2. The goal of the Gettysburg Address was to inspire people to keep for freedom in spite of their personal struggles.
What molecule determines the characteristics a child will inherit from its parents?
 PLEASE HELP ILL GIVE BRAINLIESTTTT
A bullet of mass 0.01 kg is fired in to a sand bas of mass 0.49 kg from a tree. The Sand bag with the bullet embedded in to it swings a way at lo m/s find a Th
'Suppose your hand moves upward by 0.50m while you are throwing the ball. The ball leaves your hand with an upward velocity of 20.0 m/s. Find the magnitude of t
food absorbation and assimilation??​