Esercizi sull'Operatore If-Else
Un programma che segnala temperature elevate
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; }
Compito
Swipe to start coding
Costruire una calcolatrice che divida i numeri, ma solo se nessuno dei due numeri è zero.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
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
Esercizi sull'Operatore If-Else
Scorri per mostrare il menu
Un programma che segnala temperature elevate
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; }
Compito
Swipe to start coding
Costruire una calcolatrice che divida i numeri, ma solo se nessuno dei due numeri è zero.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 2
single