What does the error message mean ? (In c#) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What does the error message mean ? (In c#)

So, I am new in c# and learned it yesterday. And I now learned how to make calculator in c# and found message below and when I give no input, it gives the error message = "Unhandled Exception ..." Can anybody please explain to me what's happening? And what is the solution for the problem https://code.sololearn.com/cq9R6JhJPTl9/?ref=app

24th Dec 2020, 7:59 AM
joshua
3 Answers
+ 2
Your program requires 3 inputs to work, 2 numbers and 1 operator. The error you saw happened because (as you wrote) "when I give no input", so when the program tries to convert string input to number, it failed, because there is nothing to convert.
24th Dec 2020, 9:34 AM
Ipang
+ 2
Ipang , thank you very much. Your explanation really has helped clear my confusion👍. Good day🇮🇩🇯🇵
24th Dec 2020, 9:40 AM
joshua
+ 1
Very welcome my friend 👌
24th Dec 2020, 10:37 AM
Ipang