Solved Rewrite The Following Code Segment Using While Loop

Solved Rewrite The Following Code Segment Using While Loop