View Code of Problem 1

import java.util.Scanner;

public class w {
	public static void main(String[] args) {
		int a=0,b=0;
		Scanner scan = new Scanner(System.in);
		a=scan.nextInt();
		b=scan.nextInt();
		System.out.println(a+b);
		scan.close();
		
	}
}

/*
Main.java:3: error: class w is public, should be declared in a file named w.java
public class w {
       ^
1 error
*/

Double click to view unformatted code.


Back to problem 1