-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlay1.java
More file actions
25 lines (20 loc) · 790 Bytes
/
Copy pathPlay1.java
File metadata and controls
25 lines (20 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import java.util.*;
public class Play1{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("enter name of student :");
String s = sc.nextLine();
System.out.println("enter roll no:");
int roll = sc.nextInt();
System.out.println("enter course:");
sc.nextLine();
String course = sc.nextLine();
System.out.println("enter semseter:");
int sem = sc.nextInt();
System.out.println("PRINTING DETAILS");
System.out.println("NAME: "+s);
System.out.println("ROLL NO: "+roll);
System.out.println("COURSE: "+course);
System.out.println("SEMESTER: "+sem);
}
}