"Write a program that asks the user for a series of integers one at a time. When the user enters the integer 0, the program displays the following information.

1) the number of integers in the series (not including zero)

2) the average of the integers

3) the largest integer in the series

4) the smallest integer in the series

5) the range (difference between largest and smallest integer)

My problem is, I don't know what to initialize these int's to to get the above results.

Code:#include <iostream.h> #include <string.h> #include <iomanip.h> main() { int number; int total; double average; int counter; int largest; int smallest = 130000; int range; do { cout << "Enter a series of integers, enter 0 when you're done." << '\n'; cin >> number; if (number != 0); cout << "The number of integers you entered was" << number << '\n'; cout << "The average of the integers is" << average << '\n'; cout << "The largest integer in the series is" << largest << '\n'; cout << "The smallest integer in the series is" << smallest << '\n'; cout << "The difference between the largest integer and smallest integer is" << range << '\n'; } while (number != 0); return 0; }