Задача Задача №3622642
А
А
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.