0
How can I use the user input further in my code
I am trying to make a program that display the details of the person when the user input matches the code
1 ответ
+ 2
Store the value in a variable.
You should specify the programming language in question tags to get better feedback.
In java:
Scanner myVar = new Scanner(System.in)
String name = myVar.nextLine();
int age = myVar.nextInt();
Now you can apply your logic to name and age variables.