View Code of Problem 1

import java.util.Scanner;
 
public class Main {
	int a, d, e;
 
	void sum_f_I() {
		a = d + e;
	}
 
	public static void main(String[] args) {
		Main sum = new Main();
		
		Scanner b = new Scanner(System.in);
		Scanner c = new Scanner(System.in);
		int d = b.nextInt();
		int e = c.nextInt();
		int a = d + e;
		sum.sum_f_I();
		System.out.println(a);
 
	}
}

Double click to view unformatted code.


Back to problem 1