セクション 1. 章 32
single
Challenge: else Keyword
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
- Declare an integer variable
ageto store the user’s age. - Declare a boolean variable
isMemberto indicate if the user is a member. - Use an if-else statement to check the following conditions:
- If the user is 65 or older or
isMemberis true, print:Eligible for discount - Otherwise, print:
Not eligible for discount
- If the user is 65 or older or
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 32
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください