Why 1%40 =1 ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why 1%40 =1 ??

I think % means remainder. So why 1??? please help.. 😢 https://code.sololearn.com/ctREQdGb49uI/?ref=app

1st Aug 2017, 6:07 AM
Rahul Pramanik
Rahul Pramanik - avatar
5 Answers
+ 6
Above poster is correct, not sure why the down vote. How many times does 40 go into 1? 0 times. How many left over? 1
1st Aug 2017, 6:39 AM
Dan Walker
Dan Walker - avatar
+ 10
down vote was probably from someone who has seen this question many times. maybe?
1st Aug 2017, 7:37 AM
jay
jay - avatar
+ 3
because the quotient is 0, and the remainder is 1
1st Aug 2017, 6:21 AM
Conway Lih
Conway Lih - avatar
+ 3
I meant downvote on the first answer
1st Aug 2017, 7:49 AM
Dan Walker
Dan Walker - avatar
+ 2
Thanks 🙏
1st Aug 2017, 7:16 AM
Rahul Pramanik
Rahul Pramanik - avatar