Write the output:
Scanner scn = new Scanner(System.in);
System.out.println("Enter an integer");
int a = scn.nextInt();
System.out.println("Enter a String");
String b = scn.nextLine();
System.out.printf("You have entered:"+ a + " " + "and name as " + b);
Answers
Answered by
0
Answer:
Enter an integer
5
Enter a string
Hello
"You have entered:" 5 "and name as" hello
Explanation:
mark as brainiest
Similar questions