Hackerrank #1 Java Stdin and Stdout

 Hackerrank problem #1:



Java Stdin and Stdout:

Here is the solution in java:

import java.util.*;

public class Solution {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        // Complete this line
        // Complete this line

        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        // Complete this line
        // Complete this line
    }
}

Copy it and paste. But understand the problem first.
It is very easy problem hope you all will understand it. If you don't get it comment here bellow.
YouTube

Post a Comment

Previous Post Next Post