Showing posts with label Java Stdin and Stdout I. Show all posts
Showing posts with label Java Stdin and Stdout I. Show all posts

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();
    }
}