Question: Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, sums in the range 10..19

Write a function in Java that implements the following logic: Given 2 ints, a and b, return their sum. However, sums in the range 10..19 inclusive, are forbidden, so in that case just return 20. 1public int sortaSum(int a, int b) 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
