Problem Statement
A description of the problem can be found on Hackerrank.
Solution
Repeat reading int
from scanner as in example for 2 another variables
Again print 2 new variables to standard output as example with variable a
.
I created solution in:
All solutions are also available on my GitHub.
Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import java.util.*; public class Solution { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); System.out.println(a); System.out.println(b); System.out.println(c); } } |