using matlab The test suite assigns a random number to the v
using matlab
Solution
Ans: The following script uses while loop to repeatedly to divide by 7 until remaining value < 1.
count = 0
while Number>1
Number = Number/7 % divides given number by 7
count = count + 1
end
WhatsLeft = Number % assigning result to Whatsleft
DivisionCount = int32(count)
