1. Write a C++ program that reads two integer values initial and final and finds number of integers in the range from initial to final which are odd and multiples of 7 at the same time. The main function should pass initial and final to another function named check. The printing of the resultant value should be in the main function. If the initial value greater than the final value the message “Not acceptable range “should be displayed. The function check should also calculate the summation of these integers and then passes the calculated value to the main function to print it.

Enter initial value: 4

Enter final value : 35

Integers which are odd and multiple of 7 in the range from 4 to 35 are:

7 21 35

Sum = 63

plz help me solving this, in very simple way ,, im using microsot visual c++

Must be homework. Solve it step by step. Do the inputs first.

Ask Your Question

Weekly Poll

Are you looking forward to the Xbox Series X?

Discuss in The Lounge

Poll History