Java Stdin and Stdout I

  • + 4 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); }