0
Follow
0
View

How to solve the #c# problem?

dingning00 注册会员
2023-02-27 15:16
  • a = 1, b = 2, c = 3, expression c > b! = a
  • in order of precedence of the operator, > Take precedence over! =, calculate c > first; b, the expression is valid, that is, the result is 1
  • and then 1! Is equal to a, which is equal to 1 factorial. = 1, where the condition is not true, the result is 0
dingxiang12a 注册会员
2023-02-27 15:16

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > expression c & gt; b ! = a can be converted to(c > b) and(b ! = a). Since c is 3 and b is 2,(c > b) is True, and since a is 1, it is not equal to b, so(b! = a) is also True, so the value of the entire expression is True.

zcju001 注册会员
2023-02-27 15:16

0, output a Boolean

oybt888 注册会员
2023-02-27 15:16
< div class = "md_content_show e397 data - v - 3967" = "" >

hope to adopt

About the Author

Question Info

Publish Time
2023-02-27 15:16
Update Time
2023-02-27 15:16