+ 1
Can someone solve this problem please ? An error occurs when I launch it
import java.util.Scanner; public class Program { public static void main(String[] args) { // int age = (0); System.out.println("Quel age avez vous ?"); Scanner age = new Scanner(System.in); System.out.println(age.nextLine()); if(age < 20){ System.out.println("Bienvenue !"); } else { System.out.println("trop vieux !!!"); } } }
1 Respuesta
0
Ty a lot I was stuck and now I can continue and do so much more things !