import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(System.in); int a,b; while(scan.hasNext()) { int a=scan.nextInt(); int b=scan.nextInt(); System.out.println(a+b); System.out.println(); } } /* Main.java:19: error: reached end of file while parsing } ^ 1 error */ |
Double click to view unformatted code.