Modified do-while to start at do and display square of previous output until 1,000,000