-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput.java
More file actions
29 lines (28 loc) · 743 Bytes
/
Input.java
File metadata and controls
29 lines (28 loc) · 743 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
import java.util.*;
public class Input {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// String inputx = sc.next();
// System.out.println(inputx);
/*
Output: xnocode coder
xnocode
*/
// String inputy = sc.nextLine();
// System.out.println(inputy);
/*
Output: xnocode coder
xnocode coder
*/
float number = sc.nextFloat();
System.out.println(number);
/*Output: 23.4324
23.4324
*/
int numberx = sc.nextInt();
System.out.println(numberx);
/*Output: 23
23
*/
}
}