Hey hi,
there should be a condition which checks for the principal value before the inner do while loop.
so if user enters the 0 value for principle , it will not execute the inner do while loop...