while loop example with condition