How do I end mid program? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How do I end mid program?

if (X==y) make the program stop is there a way to do that (excuse my language English isn't my first language)

14th Nov 2016, 8:51 AM
Nes Denon
Nes Denon - avatar
4 Antworten
+ 9
You can use : Environment.Exit(0) OR Environment.FailFast(string) For Environment.FailFast, you can place a message inside the bracket there to display something on the console before it ends the system.
14th Nov 2016, 9:46 AM
Wen Qin
Wen Qin - avatar
+ 3
You can use Environment.Exit(0);
14th Nov 2016, 9:27 AM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar
0
i havent understand you question .. can you explain it more?
14th Nov 2016, 8:59 AM
George Rabbat
George Rabbat - avatar
0
thanks
14th Nov 2016, 2:07 PM
Nes Denon
Nes Denon - avatar