Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ if-else演算子の練習 | 制御文
/
C基礎
セクション 4.  2
single

single

bookif-else演算子の練習

メニューを表示するにはスワイプしてください

高温を警告するプログラム

main.c

main.c

copy
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; }
タスク

スワイプしてコーディングを開始

どちらの数値もゼロでない場合にのみ割り算を行う電卓を作成してください。

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 4.  2
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt