hacker rank java 2nd solution


2.Java Stdin and Stdout I



import java.util.Scanner;
class Solution {

public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
System.out.println(a);
int b = scan.nextInt();
System.out.println(b);
int c= scan.nextInt();
System.out.println(c);
}
}


Compiler Message
Success
Input (stdin) 
    42
   100
125
Expected Output
42
100
125

Comments

Popular posts from this blog

Amazon Web Services

Hacker Rank all java and python problem solutions

Google Code-In mentorship experience :)