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

book
Comparison 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.

Aufgabe

Swipe to start coding

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

Lösung

#include <stdio.h>

int main()
{
int a = 1;

printf("Answer is: %d\n", 3 + 6 * ++a > 14);

return 0;
}

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 5
#include <stdio.h>

int main()
{
int a = 1;

printf("Answer is: %d\n", 3 + 6 * ++a ___ 14);

return 0;
}

Fragen Sie AI

expand
ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt