Java Stdin and Stdout I Hackerrank Solution Java
For Explanation Check Video:
Sample Input
42
100
125
Sample Output
42
100
125
Code:
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 }}
Comments
Post a Comment