pi to the nth digit

Solved question 1