Change (num > 10) to (num >= 10), typo in code.

The while loop will not work correctly if the num = 10, or 100 etc