how to print output on same line in 'while loop'?

Printable View