Logical Condition
|
Description
|
a < b
|
Less than
|
a <= b
|
Less than or equal to
|
a > b
|
Greater than
|
a >= b
|
Greater than or equal to
|
a == b
|
Equal to
|
a != b
|
Not Equal to
|
if
statement is used to specify a block of C++ code to be executed if a condition is true
.if (condition) {
// if condition is true then block of code to be executed