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; }
Uppgift
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
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; }
Uppgift
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 4. Kapitel 2
single
Awesome!
Completion rate improved to 2.63
if-else Operator Practice
Svep för att visa menyn
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; }
Uppgift
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Lösning
Var allt tydligt?
Tack för dina kommentarer!