Question: Test for Divisibility If the remainder from dividing A by B is zero, then A is a multiple of B ( A is evenly divisible

Test for Divisibility
If the remainder from dividing A by B is zero, then A is a multiple of B ( A is evenly divisible by B).
For example, the remainder from dividing 6,9, or 12 by 3 is 0, which means 6,9, and 12 are all multiples of 3.
Write a program containing a Repetition Sequence to print the numbers from 1 to 25, and on the line next to each number, print messages if the number is a multiple of 2,3, or 5. Here is a sample of the output:
Example Printout
1 Not a Multiple of 2,3, or 5
2 multiple of 2
3 multiple of 3
4 multiple of 2
5 multiple of 5
6 multiple of 2 multiple of 3
7 Not a Multiple of 2,3, or 5
8 multiple of 2
9 multiple of 3
10 multiple of 2 multiple

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!