C
C#3w ago
heloo

Issue with code execution

static public int GetMain() { try { Console.Write("Choose A project Type 1-Backend 2-fronted 3-fullstack:"); int Choice = int.Parse(Console.ReadLine()!); if (Choice >= 4) { throw new Exception(); } return Choice; } catch (Exception e) { Console.WriteLine("Input Must Be Numbers Only!;"); GetMain(); } }
7 Replies
Angius
Angius3w ago
What issue?
jcotton42
jcotton423w ago
@heloo we are running on a critical shortage of psychics. I’m afraid you’ll have to give details.
Angius
Angius3w ago
>asks question >goes offline >doesn't elaborate further
TheBoxyBear
TheBoxyBear3w ago
To this day scientists all over the world are (not) questioning what OP was trying to say
jcotton42
jcotton423w ago
Guys, one teasing is enough :kek:
MODiX
MODiX3w ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server