+0  
 
0
639
1
avatar
how do you do 15+(22/4) and have it equal 6
 Sep 17, 2013
 #1
avatar
0
how make 15 + (22/4) = 6 ?
use modulo arithmetic
eg ...
15 + (22/4) = 15 + 5.5 = 20.5
with 20.5 take the floor = 20
then do (20 modulo 14) = 6
or ...
with 20.5 take the ceiling = 21
then do (21 modulo 15) = 6
where
modulo is an arithmetic operator?
 Sep 17, 2013

0 Online Users