Практика з Оператором If-Else
Програма для сповіщення про високу температуру
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; }
Завдання
Swipe to start coding
Створення калькулятора, який ділить числа, але лише якщо жодне з чисел не дорівнює нулю.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 2
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
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
Свайпніть щоб показати меню
Програма для сповіщення про високу температуру
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; }
Завдання
Swipe to start coding
Створення калькулятора, який ділить числа, але лише якщо жодне з чисел не дорівнює нулю.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 4. Розділ 2
single