how to keep data in a while loop C# code example Example: while loop check condition c# simple while loop