Cpp While Loop Syntax In Python Input From User In Java