Übungen zum If-Else-Operator
Ein Programm zur Warnung bei hoher Temperatur
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
Erstellung eines Rechners, der Zahlen dividiert, jedoch nur, wenn keine der Zahlen null ist.
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 explain how the program alerts for high temperature?
What temperature threshold does the program use for alerts?
Can you show an example of how the alert looks?
Großartig!
Completion Rate verbessert auf 2.63
Übungen zum If-Else-Operator
Swipe um das Menü anzuzeigen
Ein Programm zur Warnung bei hoher Temperatur
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
Erstellung eines Rechners, der Zahlen dividiert, jedoch nur, wenn keine der Zahlen null ist.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 2
single