📜 ⬆️ ⬇️

Inequality condition coding style


There are several ways to frame inequality.
In one case, with the variable on the left, we write as we read: “X is greater than zero.”
X > 0

Another method - a smaller number is on the left, a larger one on the right, making it easier to determine the range:
0 < X && X < 100

Holivar is open, gentlemen!

')

Source: https://habr.com/ru/post/186236/


All Articles