Find solutions to your problems with the help of IDNLearn.com's knowledgeable users. Ask any question and get a detailed, reliable answer from our community of experts.

What is the output of:

print (8 % 4)


Sagot :

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