Multiple of

Report a typo

Write a C++ program that accepts an integer from the user and determines whether the given integer is a multiple of both 3 and 5.

Sample Input 1:

4

Sample Output 1:

4 is not a multiple of both 3 and 5.

Sample Input 2:

15

Sample Output 2:

15 is a multiple of both 3 and 5.

Sample Input 3:

6

Sample Output 3:

6 is not a multiple of both 3 and 5.
Write a program in C++





Create a free account to access the full topic