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

How long does it take the moon the revolve around the earth? -1 month -12 hours -24 hours -1 year
Why didn’t the British armed ships “resist” the raid on the tea?
what is the average period of pregnancy?​
a warehouse has 3 shelves long enough to hold 6 boxes and high enough to hold 4 boxes. All the shelves are full. There are blank boxes on the shelves in all.
why did omakayas love dagwaging
If a fiction writer aims to persuade, why might it be important to inspire sympathy or empathy for a character? A. If a reader sympathizes or identifies with a
what is the probability of drawing two yellow marbles if the first one is placed back in the bag before the second draw. give your answer as a ratio reduced to
Chemical structure of almond flour?
Create a story using this photo
Calculate the quotient. A. 3/4 divided by 5 1/5 is? B. 3/7 divided by 2 1/2 is? C. 5/8 divided by 6 5/6 is? D. 8 3/10 divided by 5/8 is?