セクション 4. 章 2
single
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; }
タスク
スワイプしてコーディングを開始
どちらの数値もゼロでない場合にのみ割り算を行う電卓を作成してください。
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 4. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください