if a = -11 and b = 3 then what is a div b and a mod b
whts div? division
to be honest i do not know. either it's divides..or divided by..i don't know what that abbreviation means
so it is to do with division
yes. since the one below is modulo, i would assume div is related to division. just which is the problem
then just divide a by b |dw:1373105810136:dw|
i think div meants division but the result must be a entire number
ah yes. i remember now. div is the whole number and mod is the remainder. right?
well i have given the entire no' and is u round off
yes u r right @xlegendx
but this is all assuming div means divided by. what about *if* div means -11 divides 3?
what would be the result of that?
i think it is -3 and -11mod 3 = -2
that makes sense. thanks
i remember that it is use in programming
you can do that in programming? taking the mod of smaller numbers i mean
it is an operator in programing languages
sorry i just had to solve another q'
i meant i know it's possible for programs to take the mod of things like 11mod3 but i didnt think it's possible to program it to answer 3mod11
frankly, i never tried it.
Join our real-time social learning platform and learn together with your friends!