Comparison Operators Practice
Reviewing Comparison Operators
Below is a recap of the comparison operators we've covered:
Operation | Symbol | Usage 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.
Oppgave
Swipe to start coding
Insert the appropriate inequality symbol (either <
or >
) so the expression evaluates to 1
.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 3. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 2.63
Comparison Operators Practice
Sveip for å vise menyen
Reviewing Comparison Operators
Below is a recap of the comparison operators we've covered:
Operation | Symbol | Usage 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.
Oppgave
Swipe to start coding
Insert the appropriate inequality symbol (either <
or >
) so the expression evaluates to 1
.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 2.63Seksjon 3. Kapittel 5
single