0
Scanner class programs
a program to print two no's
1 Answer
0
public static void main(String agrs[]){
Scanner s = new Scanner(System.in) //import scanner class to take input from user
int number1= s.nextInt(); //prompt user to input first number
int number2= s.nextInt(); //prompt user to input Second number
System.out.println(number1 +" "+number2);
}
Hot today
Python — File Handling
2 Votes
Help me
0 Votes
What’s wrong?
2 Votes
Question is write a c program to print prime numbers up to n and print the largest number in array.
1 Votes
Achievements on Sololearn
1 Votes
How to draw in the console?
0 Votes