Computer Science, asked by vignesht42, 2 months ago

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 kunjuzz91
0

Answer:

Enter an integer

5

Enter a string

Hello

"You have entered:" 5 "and name as" hello

Explanation:

mark as brainiest

Similar questions