Less Than or Equal in C

Level 123 keystrokes

Compares if 5 is less than or equal to 5, returning 1.

C code

// <= is the less than or equal comparison operator
// Returns 1 if the left operand is less than or equal to the right one; 5 <= 5 is true
1printf("%d\n", 5 <= 5);

Output

1
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.

  • "× 2
  • ,× 1
  • ;× 1
  • (× 1
  • )× 1
  • \× 1
  • %× 1
  • <× 1
  • =× 1

More C examples at level 1

← C typing practice