Thread: counting digits
View Single Post
Old Apr 10th, 2007, 10:46 AM   #4
pegasus001
Hobbyist Programmer
 
pegasus001's Avatar
 
Join Date: Nov 2006
Location: 163H
Posts: 213
Rep Power: 2 pegasus001 is on a distinguished road
You can divide it by ten until it reaches 0. Like :
213 / 10 = 21
21 / 10 = 2
2 / 10 = 0

So you have 3 numbers.
__________________
You never test the depth of a river with both feet.
The believer is happy. The doubter is wise.
Free speech carries with it some freedom to listen.
The next generation will always surpass the previous one. It`s one of the never ending cycles of life.
pegasus001 is offline   Reply With Quote