-
Notifications
You must be signed in to change notification settings - Fork 0
/
BioData.java
30 lines (18 loc) · 898 Bytes
/
BioData.java
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
import java.io.*;
class BioData{
public static void main(String args[]) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("enter employee id");
int id = Integer.parseInt(br.readLine());
System.out.print("enter your name");
String name= br.readLine();
System.out.print("enter your salary");
float sal= Float.parseFloat(br.readLine());
System.out.print("enter gender(n/f)");
char Gen=br.readLine().charAt(0);
System.out.println("id"+":"+id);
System.out.println("gender"+":"+Gen);
System.out.println("name"+":"+name);
System.out.println("sal"+":"+sal);
}
}