Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Comparison Operators Practice | Operators
C Basics
course content

Course Content

C Basics

C Basics

1. Introduction
2. Data
3. Operators
4. Control Statements
5. Functions
6. Pointers

bookComparison Operators Practice

Reviewing Comparison Operators

Below is a recap of the comparison operators we've covered:

OperationSymbolUsage Example
Equality==a == b
Inequality!=a != b
Greater than>a > b
Less than<a < b
Greater than or equal to>=a >= b
Less than or equal to<=a <= b

You'll be using some of these operators in the upcoming task.

Task

Insert the appropriate inequality symbol (either < or >) so the expression evaluates to 1.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
toggle bottom row

bookComparison Operators Practice

Reviewing Comparison Operators

Below is a recap of the comparison operators we've covered:

OperationSymbolUsage Example
Equality==a == b
Inequality!=a != b
Greater than>a > b
Less than<a < b
Greater than or equal to>=a >= b
Less than or equal to<=a <= b

You'll be using some of these operators in the upcoming task.

Task

Insert the appropriate inequality symbol (either < or >) so the expression evaluates to 1.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
toggle bottom row

bookComparison Operators Practice

Reviewing Comparison Operators

Below is a recap of the comparison operators we've covered:

OperationSymbolUsage Example
Equality==a == b
Inequality!=a != b
Greater than>a > b
Less than<a < b
Greater than or equal to>=a >= b
Less than or equal to<=a <= b

You'll be using some of these operators in the upcoming task.

Task

Insert the appropriate inequality symbol (either < or >) so the expression evaluates to 1.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Reviewing Comparison Operators

Below is a recap of the comparison operators we've covered:

OperationSymbolUsage Example
Equality==a == b
Inequality!=a != b
Greater than>a > b
Less than<a < b
Greater than or equal to>=a >= b
Less than or equal to<=a <= b

You'll be using some of these operators in the upcoming task.

Task

Insert the appropriate inequality symbol (either < or >) so the expression evaluates to 1.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt