import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
String student_name, home_town;
int student_number;
System.out.println("Enter the name of the student: ");
student_name=in.next();
System.out.println("Enter home town of the student: ");
home_town=in.next();
System.out.println("Enter student number: ");
student_number=in.nextInt();
System.out.println("Hi "+student_name+" ,your student number is "+student_number+" and how is "+home_town+"?");
}
}
Comments
Leave a comment