171k views
18 votes
Exercise 1: Multiples of Five Develop a program that contains the following functions: - Function that returns true if a given number is a multiple of 5; false otherwise. Main function that reads two integer values from the user and print all multiples of 5 between them inclusive. Your function should start from the lowest to the highest value entered by the user. Samples of input/output are given below. Sample input/output 1 Enter first: 4 Enter second: 40 Multiples of 5 between 4 and 40 are: 5 10 15 20 25 30 35 40 Sample input/output 2 Enter first: 40 Enter second: 4 Multiples of 5 between 4 and 40 are: 5 10 15 20 25 30 35 40

1 Answer

10 votes

Answer:

Step-by-step explanation:

please see attached picture

Exercise 1: Multiples of Five Develop a program that contains the following functions-example-1
User Mhlavacka
by
3.5k points