Added Do While Loop in the code.