C++ → Basics → Arithmetical Operations → Input in C++ → Conditions and Decision in C++
Decisions in C++ can be made in several ways. The basic conditions to make simple decisions are:
Before we learn the construction of these two conditional statements, we should be familiar with the relational operators.
Relational Operator
In simple words, a relational operator compares two values.
The complete list of C++ relational operators is given below:
Operator | Meaning |
> | greater than |
< | less than |
== | equal to |
!= | not equal to |
<= | less than or equal to |
>= | greater than or equal to |
NEXT: The if/else condition