Write a C++ program that reads two integer values initial

March 25, 2012 at 15:36:24
Specs: Windows Vista
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++



See More: Write a C++ program that reads two integer values initial

Report •


#1
March 25, 2012 at 15:43:05
Must be homework. Solve it step by step. Do the inputs first.

Report •
Related Solutions


Ask Question