Ask your own question, for FREE!
Computer Science 12 Online
kekeman:

Select the mathematical statement that is true. 22 % 10 > 2 22 % 10 < 2 22 % 10 == 2 22 % 10 != 2

kekeman:

HELPPPPPPPPPPPPPP

XxXNessalulbaddieXxX:

@kekeman wrote:
HELPPPPPPPPPPPPPP
oh ok i think i can still help

XxXNessalulbaddieXxX:

which one do u think it s ?

Vocaloid:

% is the modulus operator. It represents the remainder after two numbers are divided. So what’s the whole number remainder after 22 is divided by 10?

kekeman:

2.2

Vocaloid:

whole number, not decimals 10 goes into 22 twice, with 2 leftover. so 22 % 10 = 2 for modulus, you only want the remainder after division.

kekeman:

Ok i'm confused

kekeman:

So it's going to be 22 % 10 == 2?

Vocaloid:

yes when you divide 22/10, you get 2, with 2 leftover. modulus is asking for the "leftover" 2 after division.

kekeman:

okkk

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!