locked
c# console app- while command- How to limit the number of loops? RRS feed

  • Question

  • I'm working on a program for fun and I'm using the 'while' command. I want to ask- What do I need to write to limit the number of loops that the person who's using my program would have? For example- I ask: "What is the value of 5+2?", and he's wrong a few times, so how do I limit the number of 'tries' he has until he writes 7?
    Sunday, April 1, 2018 4:18 PM

All replies