Wednesday, December 30, 2020

Java Stdin and Stdout I HackerRank | JAVA | Solution | Easy | Color The Code



Problem : https://www.hackerrank.com/challenges/java-stdin-and-stdout-1/problem

Solution : 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
        int b = scan.nextInt();
        // Complete this line
        int c = scan.nextInt();
        
        System.out.println(a);
        // Complete this line
        System.out.println(b);
        // Complete this line
        System.out.println(c);
        
        scan.close();
    }
}

No comments:

Post a Comment