Write a method sumOfNumbersUpToNExceptMultiplesOfX(int n, int x) that returns the sum of all numbers 1-n including n, ex
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a method sumOfNumbersUpToNExceptMultiplesOfX(int n, int x) that returns the sum of all numbers 1-n including n, ex
Write a method sumOfNumbersUpToNExceptMultiplesOfX(int n, int x)that returns the sum of all numbers 1-n including n, except if thevalue is a multiple of x ( evenly divisible by x ).