Paste Search Dynamic
Recent pastes
AddNumber
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3. importPackage(java.util);
  4.  
  5.  
  6.  
  7. function AddNumber(a, b)
  8. {
  9. var answer=a+b;
  10. // Write your code here
  11. //answer = a+b;
  12. return answer;
  13. }
  14.  
  15.  
  16.  
  17. var stdin = new bufferedreader(new inputstreamreader(system['in']));
  18. //input for a
  19. var ab = stdin.readLine();
  20. ab = ab.split(" ");
  21. a = parseInt(ab[0]);
  22. b = parseInt(ab[1]);
  23. //input for b
  24.  
  25. var result = AddNumber(a, b);
  26. system.out.print(result);
Parsed in 0.009 seconds