fork(2) download
  1. import java.util.Scanner;
  2. class TestClass{
  3. public static void main(String args[]) throws Exception {
  4. int a,b,c;
  5. Scanner x= new Scanner(System.in);
  6. a = x.nextInt();
  7. b = x.nextInt();
  8. if((a>0 && a<200) && (b>0 && b<200)){
  9. c=a+b;
  10. System.out.println(c);
  11. }
  12. else{
  13. throw new Exception();
  14.  
  15. }
  16. return;
  17. }
  18. }
Success #stdin #stdout 0.14s 321088KB
stdin
1 
2
stdout
3