Time Limit: 1s
Memory Limit: 128MB
A+B=?
Two integer a,b (-1000<=a,b<=1000)
Output a+b
import java.util.*; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int a, b; a = sc.nextInt(); b = sc.nextInt(); System.out.println(Calc.add(a, b)); } } YOUR_CODE
1 2
3
class Calc { public static int add(int a, int b) { return a+b; } }