connnnor3108 connnnor3108
  • 24-01-2020
  • Computers and Technology
contestada

Write a statement that outputs variable userNum. End with a newline.

Respuesta :

ijeggs
ijeggs ijeggs
  • 25-01-2020

Answer:

System.out.println(userNum);

Explanation:

Using Java programming language, lets assume the variable userNum is entered by a user. The code snippet below will prompt the user to enter a number and output the the variable:

import java.util.Scanner;

public class TestClass {

   public static void main(String[] args) {

   System.out.println("Enter a number");

   Scanner input = new Scanner(System.in);

   int userNum = input.nextInt();

       System.out.println(userNum);

   }

}

Answer Link

Otras preguntas

classfy food on different base​
BRAINLEST. Read the passage. History in the Making The December morning was cold and crisp as John Lee and his retriever Sampson turned toward the beach. Inhali
What is the origional price of an object if the total is 878.74 and the tax is 0.07.My problem/find XX × 0.07 =bX + b =$878.78​
i will give brainliest<3
8. What is the annual salary for someone who earns a biweekly salary of $863.00?
F a person is earning $34,923 per year, approximately how much should they be saving, including retirement and other savings?'
Order from least to greatest. 0.64, 13/20, 63%
Pleaseeeee helppp !!!!!!! Will mark Brianliest !!!!!!!!!!!!!!
Frankie borrowed 800 for 6 years. He is charged 5% simple interest. How much interest will he pay in 6 years
pendulum takes 1 second to move from x to y so it's frequency equal ​