You are viewing a single comment's thread. Return to all comments →
Scanner sc=new Scanner(System.in); while(sc.hasNextInt()){ int a=sc.nextInt(); System.out.println(a); }
is cleaner, especially if the test cases don't input 3 integers only...
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 →
is cleaner, especially if the test cases don't input 3 integers only...