I would not have made the program ask for input; instead I would read from STDIN. Neither would I print 'Output:' - just print the answer.
I would not use a bare block in totalizer. Instead I would write: while ($number > 1) {....}. I'd omit the != 0 as well.
You also may want to do some input validation. You're just assuming everyone will type in exactly two positive numbers; your program is bound to loop forever if someone offers '-1 -1' as input.