This program is in response to the assignment:
\"Create a method named Sum() that accepts any number of integer parameters and
displays their sum. Writ
Just if someone read this question and needs comparing a bool with an int:
(Convert.ToInt32(q) == 1)
I got this error and many others when I inadvertently opened a solution with Visual Studio 2015 when it had been developed in VS2017.
Other errors included:
; expected
} expected
You can't write (q == 1) in C#, because q is a bool and 1 is an int.
q can only be compared to another boolean expression, e.g. true, false, another boolean variable, etc.