anule3ka96

10 Reputation

0 Badges

7 years, 189 days

MaplePrimes Activity


These are questions asked by anule3ka96

Write the procedure "number (n)", which will display the number of digits in the given number,
e.g., n = 2648 returns 4

number := proc (n)

local sum; 

while (1/10)*n != 0 do 

sum = sum+1; 

print(sum)

end do 

end proc

Why this doesn't work?
 

Page 1 of 1