import java.util.Scanner; public class web56{ public static void main(String args[]){ Scanner scan=new Scanner(System.in); int a=scan.nextInt(); int b=scan.nextInt(); System.out.print(a+b); } } /* Main.java:3: error: class web56 is public, should be declared in a file named web56.java public class web56{ ^ 1 error */ |
Double click to view unformatted code.