hi guyz, i have a problem with a while/do while loop, and i'm not certant is it really a problem or i just dont know the rule about using it.
For instance, is it possible to use 2 or more conditions in while loop using ||(or) operator?
the correct syntax for a do-while loop is
//your codes here
furthermore, it is possible to use more than one condition in the while loop by using the || operator but you must take care that if any condition gets true the it will continue to loop and in your code it is clearly visible that the condition "b!=1" is always true as there isn't any statement to change the value of 'b'. So it is an infinite or never ending loop.