if-else Operator Practice
A Program Alerting High Temperature
main.c
123456789101112131415161718#include <stdio.h> int main() { int temperature = 200; // in celsius if (temperature > 80) { printf("Temperature is so high: %d degrees Celsius\n", temperature); } else { printf("Temperature is normal: %d degrees Celsius\n", temperature); } return 0; }
Oppgave
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 2
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.63Awesome!
Completion rate improved to 2.63
if-else Operator Practice
A Program Alerting High Temperature
main.c
123456789101112131415161718#include <stdio.h> int main() { int temperature = 200; // in celsius if (temperature > 80) { printf("Temperature is so high: %d degrees Celsius\n", temperature); } else { printf("Temperature is normal: %d degrees Celsius\n", temperature); } return 0; }
Oppgave
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 2
single
Awesome!
Completion rate improved to 2.63
if-else Operator Practice
Sveip for å vise menyen
A Program Alerting High Temperature
main.c
123456789101112131415161718#include <stdio.h> int main() { int temperature = 200; // in celsius if (temperature > 80) { printf("Temperature is so high: %d degrees Celsius\n", temperature); } else { printf("Temperature is normal: %d degrees Celsius\n", temperature); } return 0; }
Oppgave
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!