You are viewing a single comment's thread. Return to all comments →
This will also works fine, if we restrict loop for 3 inputs. for(int i=0;i<3;i++){ int a=sc.nextInt(); System.out.println(a); }
Java Stdin and Stdout I
You are viewing a single comment's thread. Return to all comments →
This will also works fine, if we restrict loop for 3 inputs. for(int i=0;i<3;i++){ int a=sc.nextInt();
System.out.println(a); }