Новая Школа - онлайн-школа подготовки к ЕГЭ
Задача Задача №3622642
А
Аноним
18 июня 2026 10:01 · публичный вопрос
А
Аноним

-1 OR 3*2>999

Ответ нейросети
18 июня 2026 10:01

Here’s how to think about it.

  • Evaluate 3*2 > 999 → 6 > 999 → False
  • Treat -1 as truthy (nonzero) in most languages
  • So True OR False → True

What you get depends on the language:

  • Python:
    • Expression value: -1 (since -1 is truthy, “-1 or False” yields -1)
    • Boolean sense: True
  • C/C++/Java:
    • Expression value: 1 (true)
    • Boolean sense: true
  • JavaScript:
    • Expression value: -1 (|| returns the first truthy operand)
    • Boolean sense: true

If you just need a boolean result, it’s true in all common languages; the exact returned value differs. If you tell me which language you’re using, I can show the exact expression and result.