accept a name from the user and print welcome message in java
Answers
Answered by
6
Answer:
import java.util.*;
{
public static void main(String[] args)
{
String s;
Scanner sc = new Scanner(System.in);
System.out.println(“Enter Your Name”);
s = sc.nextLine( );
System.out.println(“Welcome” + s);
}
}
Hope it helped
Answered by
0
Answer:
3
Explanation:
xbtjtwttwjstjsgkgseysgksgngsn
Similar questions