HackerRank Java- Stdin and Stdout I
In this challenge, you must read 3 integers from stdin and then print them to stdout. Each integer must be printed on a new line. To make the problem a little easier, a portion of the code is provided for you in the editor below.
- import java.util.*;
-
- public class Solution {
-
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int a = scan.nextInt();
- // Complete this line
- // Complete this line
- int b = scan.nextInt();
- int c = scan.nextInt();
-
- System.out.println(a);
- // Complete this line
- // Complete this line
- System.out.println(b);
- System.out.println(c);
- }
- }