Home  >  Q&A  >  body text

x=3 y=4 I don’t understand

x<=y Why is true

wsws1033 days ago1164

reply all(2)I'll reply

  • A _ Q _i_

    A _ Q _i_2021-10-12 20:50:47

    If x<=y is true.

    So it’s very simple. The comparison of strings is the ASCII value. The ASCII value of the letter x is 120 and the ASCII value of y is 121.

    Then 120<=121 must be correct, so it is true .

    reply
    1
  • autoload

    autoload2021-09-28 09:23:36

    First bring x and y into x<=y. Is it 3<=4? Is this inequality true? In programming, we call such an inequality an expression. The expression has only two values, true and false. , if this inequality is true, the value of this expression is true, if not, it is false

    reply
    1
  • Cancelreply