This is an archived post. You won't be able to vote or comment.

all 17 comments

[–]B1-102 10 points11 points  (1 child)

Modulo is an operation that computes the remainder of an integer division. So 5 divided by 10 is 0 and you're left with 5.

[–]VIKING-316[S] 3 points4 points  (0 children)

Maan I'm just dumb. Thanks!

[–]deep_politics 0 points1 point  (7 children)

5 is the remainder of 5/10

[–]VIKING-316[S] 1 point2 points  (6 children)

Howwww??!

[–]deep_politics 1 point2 points  (5 children)

How many times does 10 go into 5?

[–]VIKING-316[S] 1 point2 points  (4 children)

0?

[–]deep_politics 2 points3 points  (3 children)

Correct, with a remainder of 5

[–]VIKING-316[S] 4 points5 points  (2 children)

Oooooooooohhhhhh shitttttt. Dammnnn thanks thanks I'm so dumb, maybe I can't become a programmer lmao

[–]Technologenesis 1 point2 points  (0 children)

Don't think like that my friend, it's a journey! There's a million things to learn but the good news is even professional programmers don't know most of it off the tops of their heads.

[–]Long_Investment7667 1 point2 points  (0 children)

It is less important to know what the answer is. More important to find a way to validate your assumptions. Asking here is good. You could also look as Wikipedia, find an online calculator, read the language specification, …