Computer Science, asked by prajwal8065, 8 months ago

a java program to get value from the users​

Answers

Answered by Anonymous
7

Explanation:

Example of integer input from user

import java.util.*;

class UserInputDemo.

{

public static void main(String[] args)

{

Scanner sc= new Scanner(System.in); //System.in is a standard input stream.

System.out.print("Enter first number- ");

int a= sc.nextInt();

Answered by Anonymous
0

Answer:

yes and its steps are:

Example of integer input from user

import java.util.*;

class UserInputDemo.

{

public static void main(String[] args)

{

Scanner sc= new Scanner(System.in); //System.in is a standard input stream.

System.out.print("Enter first number- ");

int a= sc.nextInt();

Explanation:

i hope my answer helped u........plzz mark me as the brainliest

Similar questions