Hi all out here

Please, please tell me if I'm using the correct method to output the total in this problem. I've attached the file at the bottom as a picture cos I wasn't too sure how to do it. Thanks

Does it go like this:
Input 55 then divide it by 10 which will be 5.5
5.5 is not less than 1 so I choose the no answer, so my count now goes to two cos it was 1 first
and since it is not lesser than 1
I do it again by inputting 5.5 and dividing it by 10 which will now be 0.55
It is now lesser than 1 so I choose the yes answer
And my count goes to three
So my first output answer will be 3

Is it right, do I keep on inputting the numbers until it is lesser than 1, and increasing count each time until my answer comes to lesser than 1 then I write my output?