- 4

How to calculate the remainder

23rd Apr 2017, 8:54 AM
3ly mofty
3ly mofty - avatar
12 Respostas
+ 9
use them for solving gcd
23rd Apr 2017, 9:12 AM
Agus Mei
Agus Mei - avatar
+ 8
How old are you @3ly mofty?
23rd Apr 2017, 9:16 AM
Agus Mei
Agus Mei - avatar
+ 7
mathematically : 11%3 = 3 x 3 + 2 so the output is 2 10%3 = 3 x 3 + 1 so the output is 1 9%3 = 3 x 3 + 0 so the output is 0 8%3 = 2 x 3 + 2 so the output is 2 7%3 = 2 x 3 + 1 so the output is 1
23rd Apr 2017, 9:28 AM
Agus Mei
Agus Mei - avatar
+ 6
Use the modulo operator % 11 % 3 = 2
23rd Apr 2017, 9:01 AM
Tim G
Tim G - avatar
+ 6
Imagine you have a and b. a = 11 and b = 3 You substract the product of (('a' divided by 'b') times 'b') from 'a'. Example in C#: https://code.sololearn.com/c6e0kzR7UpX7/?ref=app
23rd Apr 2017, 9:30 AM
Tim G
Tim G - avatar
+ 5
It divides a by b and returns the remainder
23rd Apr 2017, 9:13 AM
Tim G
Tim G - avatar
+ 5
Then ask it like this in your main question next time please (-':
23rd Apr 2017, 9:15 AM
Tim G
Tim G - avatar
+ 5
If you do it on paper : 3 ) 40 ( 13 "this is the answer" 3 ---- 10 9 ---- 1 "this is the remainder" 40 divided by 3 results 13 and remainder is 1.
23rd Apr 2017, 9:38 AM
Cyrus Ornob Corraya
Cyrus Ornob Corraya - avatar
0
Okay but how it works mathematically
23rd Apr 2017, 9:07 AM
3ly mofty
3ly mofty - avatar
- 1
Greaaaaaaat thanks guys
23rd Apr 2017, 11:03 AM
3ly mofty
3ly mofty - avatar
- 3
Thats not my question i ask about how do i can calculate it manually by myself on paper
23rd Apr 2017, 9:14 AM
3ly mofty
3ly mofty - avatar
- 3
I didnt know how to ask it
23rd Apr 2017, 9:18 AM
3ly mofty
3ly mofty - avatar