weightedSum 🌶️
Write a method that takes two int parameters, a and b, and returns a plus five times b. (Multiply b by 5 first, then add a.) For example, weightedSum(2, 3) should return 17, since 3 * 5 is 15, and 2 + 15 is 17.
Write a method that takes two int parameters, a and b, and returns a plus five times b. (Multiply b by 5 first, then add a.) For example, weightedSum(2, 3) should return 17, since 3 * 5 is 15, and 2 + 15 is 17.