We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
if you know the number of inputs then you can use loops like
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
for(int a=1;a<=3;a++){
int b = scan.nextInt();
System.out.println(b);
}
}
}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout I
You are viewing a single comment's thread. Return to all comments →
if you know the number of inputs then you can use loops like
import java.util.*;
public class Solution {
}