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

6th May 2020, 9:05 PM
Sujal Bugalia
Sujal Bugalia - avatar
1 Odpowiedź
+ 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.
6th May 2020, 9:09 PM
Kevin ★