Секція 3. Розділ 8
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
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 8
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат