c# do while loop and switch
Hello, I new in c# and I have a little problem. Im using a switch in side a do while loop. I want to protect a user from writing something other that a integer or a int other that between <1,4> I mean something like this: do { int x; // i write here x if () // i got statement that will back me again to write x if i dont put a int or the x is not between <1,4> { } switch (x) { case 1: { } } case 2: { } case 3: { } case 4: { } default: { break; } } } while ();