Write a statement that outputs variable userAge. End with a newline. Program will be tested with different input values.
import java.util.Scanner;
public class VariableOutput {public static void main (String [] args) {int userAge;
Scanner scnr = new Scanner(System.in);userAge = scnr.nextInt(); // Program will be tested with values: 15, 40.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here