a java program to get value from the users
Answers
Answered by
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
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