Some problem solving programming challenges, i have solved. Not all are here, but started adding them slowly.
This project is maintained by chankruze
You need to calculate the sum of all the multiples of 3 or 5 below a given number.
Given an integer number, output the sum of all the multiples of 3 and 5 below that number.
If a number is a multiple of both, 3 and 5, it should appear in the sum only once.
An integer.
An integer, representing the sum of all the multiples of 3 and 5 below the given input.
10
23
The numbers below 10 that are multiples of 3 or 5 are 3, 5, 6 and 9. The sum of these numbers is 3+5+6+9=23
| Language | Solution |
|---|---|
| C | not available |
| CPP | not available |
| C# | not available |
| Python | available |
| Java | not available |
| Ruby | not available |
| Swift | not available |