a=9 b=5 x=a%b it mean x%*b mat result =0.45 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

a=9 b=5 x=a%b it mean x%*b mat result =0.45

10th Nov 2016, 4:57 PM
mohammed faijel
mohammed faijel - avatar
2 Answers
+ 1
No, % is modulo, this means that x = 4
11th Nov 2016, 2:57 PM
Special For You
Special For You - avatar
+ 1
5 only fit once in 9 and the rest you have is 4 and that rest you got left is called modulo. if you had number 10 and divided by 5 then 5 fits twice in 10 so there was no modulo or if asked for modulo it'd be 0 as output
12th Nov 2016, 12:03 AM
Piotr Rydlakowski
Piotr Rydlakowski - avatar