Update Print 1 to 10 using while loop