-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmp.java
More file actions
31 lines (24 loc) · 712 Bytes
/
Emp.java
File metadata and controls
31 lines (24 loc) · 712 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
26
27
28
29
30
31
import java.util.Scanner;
class Emp
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.print("ENter Id :");
int id=sc.nextInt();
System.out.print("Enter Name :");
String name=sc.next();
System.out.print("ENter Age : ");
int age=sc.nextInt();
System.out.print("ENter SALARY : ");
int salary=sc.nextInt();
System.out.print("ENter Designation : ");
String desig =sc.next();
System.out.println("=======================");
System.out.println("ID is : "+id);
System.out.println("NAme is : "+name);
System.out.println("AGE is : "+age );
System.out.println("SALARY is : "+salary );
System.out.println("Designation is : "+desig );
}
}