Write a program that asks the user for the low and high integer in a range of integers. The program then asks the user for integers to be added up. The program computes two sums:
•The sum of integers that are in the range (inclusive),
•and the sum of integers that are outside of the range.
The user signals the end of input with a 0.
In-range Adder
Low end of range:
20
High end of range:
50
Enter data:
21
Enter data:
60
Enter data:
49
Enter data:
30
Enter data:
91
Enter data:
0
Sum of in range values: 100
Sum of out of range values: 151
I need the C++ code of this by march 8.. help me pls....
2007-03-06
20:21:12
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design