CS0019 Operator cannot be applied to operands of type 'bool' and 'int'

后端 未结 3 1065
臣服心动
臣服心动 2021-01-02 20:24

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

3条回答
  •  情话喂你
    2021-01-02 20:57

    Just if someone read this question and needs comparing a bool with an int:

    (Convert.ToInt32(q) == 1)
    

提交回复
热议问题