-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsecond.java
More file actions
21 lines (18 loc) · 724 Bytes
/
second.java
File metadata and controls
21 lines (18 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.util.Scanner;
public class second {
//scanner class
public static void main (String[] args){
System.out.println("welcome to to our platform \n start your ticket booking journey from here");
Scanner input = new Scanner(System.in);
System.out.println("enter your name");
String name = input.nextLine();
System.out.println("enter your phone number");
int phone_no = input.nextInt();
System.out.println("give your birth priority");
String birth = input.nextLine();
System.out.println("enter your age");
int age = input.nextInt();
System.out.println("number of members");
int member = input.nextInt();
}
}