forked from SedaKunda/hackerrank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInOut.java
More file actions
35 lines (26 loc) · 737 Bytes
/
InOut.java
File metadata and controls
35 lines (26 loc) · 737 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
32
33
34
35
/*
One way to take input from stdin is to use the Scanner class and read in from System.in.
You can write your output to stdout by simply using the System.out.println(String) function.
In this problem, you need to read 3 integers from stdin and print them in stdout.
Sample input:
42
100
125
Sample output:
42
100
125
To make the problem easier for you, part of the code is already provided in the editor.
*/
import java.util.*;
public class InOut {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int b=sc.nextInt();
int c=sc.nextInt();
System.out.println(a);
System.out.println(b);
System.out.println(c);
}
}