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

Output reason?

3%4=3 why the reminder is 3

17th Jun 2018, 12:07 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
36 Answers
+ 11
🙏🙏
17th Jun 2018, 5:07 PM
Amirreza Vafaei Moghadam
Amirreza Vafaei Moghadam - avatar
+ 10
👍👍 3%4=3 because 3 < 4
17th Jun 2018, 4:01 PM
Amirreza Vafaei Moghadam
Amirreza Vafaei Moghadam - avatar
+ 10
خب 3 رو تقسیم بر 4 می کنیم، نمیشه پس همون 3 رو تو باقی مانده می نویسیم و مقسوم علیه هم میشه 0 😊
17th Jun 2018, 5:02 PM
Amirreza Vafaei Moghadam
Amirreza Vafaei Moghadam - avatar
+ 4
SagaTheGreat thank you, But I don't know what NGU means
17th Jun 2018, 3:59 PM
Dlite
Dlite - avatar
+ 4
D'lite d' Scorpio Never give up.
17th Jun 2018, 4:00 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 3
Rahman Rezaie the "%" operator is called the Modulo operator, its duty is to output the Remainder of a division. Unlike like the "/" division operator
17th Jun 2018, 1:17 PM
Dlite
Dlite - avatar
+ 3
4%5 is = 4
17th Jun 2018, 1:28 PM
Dlite
Dlite - avatar
+ 2
You simply can't divide 3 by 4,so: 3%4 gives a value of 0 remainder 3
17th Jun 2018, 12:26 PM
Dlite
Dlite - avatar
+ 2
why not give 0
17th Jun 2018, 1:14 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
+ 2
becuese the reminder is 0
17th Jun 2018, 1:15 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
+ 2
Rahman Rezaie let me ask you this question:: What's the remainder of 5/2
17th Jun 2018, 1:18 PM
Dlite
Dlite - avatar
+ 2
reminder is 1
17th Jun 2018, 1:19 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
+ 2
Rahman Rezaie it's wrong, I'm not asking you how many times 2 can go into 5, I'm asking for the REMAINDER! 2.5 is wrong. 1 is correct
17th Jun 2018, 1:20 PM
Dlite
Dlite - avatar
+ 2
i goted
17th Jun 2018, 1:21 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
+ 2
After Dividing 5 by 2,we are left with 1, So also After dividing 3 by 4,we are left with 3, because the quotient is 0,and the remainder is 3
17th Jun 2018, 1:23 PM
Dlite
Dlite - avatar
+ 2
You still don't understand the difference between a Quotient and a Remainder
17th Jun 2018, 1:25 PM
Dlite
Dlite - avatar
+ 2
i understand but you not get my question?
17th Jun 2018, 1:26 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
+ 2
what is the out put of this 4%5?
17th Jun 2018, 1:26 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
+ 2
OK, if you understand, what's a Quotient? And what's a Remainder?
17th Jun 2018, 1:27 PM
Dlite
Dlite - avatar
+ 2
why in real is 0
17th Jun 2018, 1:28 PM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar