The first step to successful digital business transformation is to have an effective presence on the internet
Monthly Archives: November 2020
Using PHP code to solve problems multiples of 3 and 5
If we list all the natural numbers from 0 – 40 that are multiples of 3 and 5, we get 15 and 30 only.
The sum of these multiples is 45.
Using PHP code to solve problems multiples of 3 or 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9.
The sum of these multiples is 23.