Pass two ints as parameter and return the sum of numbers.





Test cases:

Test cases Expected Result
sum(10,12) 22 OK
sum(1,2) 3 OK
sum(2147483647,1) 2147483648 OK

Java solution:

Javascript solution:

 

About the author

Bushan Sirgur

Well, I am Bushan Sirgur from Banglore, India. Currently, I am working as a Software Developer in a Service Base Company. I am interested in JAVA/J2EE, Angular 2, JavaScript, jQuery, MongoDB.

View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *