Less Or Equal in C++

Level 125 keystrokes

Prints the result of 4 <= 3, which is false and shown as 0.

C++ code

// <= is true when the left value is less than or equal to the right one
// 4 is greater than 3, so the result is false, which cout prints as 0
1cout << (4 <= 3) << endl;

Output

0
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this C++ code and how often they appear.

  • <× 5
  • ;× 1
  • (× 1
  • )× 1
  • =× 1

More C++ examples at level 1

← C++ typing practice