+ 2
Code coach
I need help solving this !! https://code.sololearn.com/c1jALSePPz7c/?ref=app
8 Respostas
+ 2
Emmanuel Pena
Java != JavaScript
+ 2
// Emmanuel Pena
console.log(age >= 18)
+ 2
function main() {
var age = parseInt(readLine(), 10)
console.log(age >= 18)
}
+ 1
You have to use the user input, the variable age, and with it calculate the result.
+ 1
Why are you having JavaScript code in a Java file?
+ 1
I need to find the age
+ 1
What line of code should i write right before that ?
0
function main() {
var age = parseInt(readLine(), 10)
// Your code here
console.log (age>=18)
}