C
C#3y ago
TOLOXI

whats wrong with my code? [Answered]

h
7 Replies
Angius
Angius3y ago
result t = num2 is not a valid line of C# code What is t?
TOLOXI
TOLOXIOP3y ago
ohhhh i may have added it by mistake the code runs without any errors thanks for the help
Binto86
Binto863y ago
don't forget to close the thread
Nikolaaa
Nikolaaa3y ago
he forgot lol
Binto86
Binto863y ago
Yep
n8ta
n8ta3y ago
Also consider just one line return Math.Max(num1, num2). It may be easier to just use the existing max function. @TOLOXI
Accord
Accord3y ago
✅ This post has been marked as answered!

Did you find this page helpful?