States in mealy type fsm checking integer divisibility by 3
Answers
Answered by
0
if the sum of all the digits of given integer is divisibile by 3 .then the given integer will also be divisible by 3.
e . g. 312 , sum of digits = 3+1+2 = 6 which is divisible by 3 . hence 312 will also be divisible by 3
312 / 3 = 104
"hope it helps"
e . g. 312 , sum of digits = 3+1+2 = 6 which is divisible by 3 . hence 312 will also be divisible by 3
312 / 3 = 104
"hope it helps"
Similar questions