Airlines are offering a special promotion for teenagers and are offering kindles to use during the flight. Write a program to ta | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Airlines are offering a special promotion for teenagers and are offering kindles to use during the flight. Write a program to ta

Test Case 2 with input of 24 is wrong. My attempt; if (age<=19); Console.WriteLine("Take your kindle");

4th Nov 2022, 1:26 PM
Wise turtle
Wise turtle - avatar
2 ответов
+ 3
if (age<=19) // without semicolon
4th Nov 2022, 1:35 PM
SoloProg
SoloProg - avatar
0
if (age <= 19 ) { Console.WriteLine("Take your kindle"); }
7th Mar 2023, 11:21 AM
Nmasinachi Ezeruigbo