Solved Do The Given Code By Using A Flag Controlled While

Solved Do The Given Code By Using A Flag Controlled While