セクション 4. 章 2
single
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; }
タスク
スワイプしてコーディングを開始
Construct a calculator that divides numbers, but only if neither of the numbers is zero.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 4. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください