- 3
Please help me
Airlines are offering a special promotion for teenagers and are offering kindles to use during the flight. Write a program to take passengers' age as input, and output "Take your kindle", if the age is under or equal to 19. Sample Input 14 Sample Output Take your kindle
9 Réponses
+ 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoloLearn
{
class Program
{
static void Main(string[] args)
{
//taking the age as input
int age = Convert.ToInt32(Console.ReadLine());
//your code goes here
if(age<=19)
{
Console.WriteLine("Take your kindle ");
}
}
}
}
// Try not to follow me!!!
+ 1
Airlines are offering a special promotion for teenagers and are offering kindles to use during the flight.
Write a program to take the passengers' age as input, and output "Take your kindle", if the age is under or equal to 19.
Sample Input
14
Sample Output
Take your kindle
in javascript
0
Please be sure to take the relevant programming language. Also, what is your code so that you can more accurately be helped debugging?
0
age = int(input("Whats your age?"))
if age <= 19:
print("Take your kindle")
0
try to write this code it will work
const age = parseInt(readLine(), 10);
if (age <= 19) {
console.log("Take your kindle");
}
0
let age = parseInt(readLine(), 10);
let message = 'Take your kindle';
if (age <= 19) {
console.log(message)
}
in javascript
0
#javasrcipt Airlines are offering a special promotion for teenagers and are offering kindles to use during the flight.
Write a program to take the passengers' age as input, and output "Take your kindle", if the age is under or equal to 19.
Sample Input
14
Sample Output
Take your kindle
The program should output
javascript
0
let msg="Take Your Kindle"
if(age<=19){
console.log("Take Your Kindle")