if-else Operator Practice
A Program Alerting High Temperature
main.c
123456789101112131415#include <stdio.h> int main() { int temperature = 200; // Шn 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; }
Aufgabe
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you show me the code for the temperature alert program?
How does the program determine what is considered a high temperature?
Can you explain how the alert is triggered in the program?
Awesome!
Completion rate improved to 2.63
if-else Operator Practice
Swipe um das Menü anzuzeigen
A Program Alerting High Temperature
main.c
123456789101112131415#include <stdio.h> int main() { int temperature = 200; // Шn 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; }
Aufgabe
Swipe to start coding
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 2
single