Using a loop when you have used the user input to create different outcomes

  • Thread starter Thread starter CoolMuffin
  • Start date Start date
C

CoolMuffin

Guest
Hello,

So I am coding c sharp and I have got my code to say that if the user enter either 1,2 or 3 a different outcome happens but then I realised that what happens if the user enters a different number to 1,2 or 3...

So I want to know how I can create a loop for my command until the user inputs the correct number?

Thanks

Continue reading...
 
Back
Top