PROGRAMMING:Average a Sequence of Integers
Write a program that calculates and prints the average of
several integers. Assume the last value read with scanf is the sentinel 9999. A typical input sequence
might be
10 8 11 7 9 9999
indicating that the average of all the values preceding 9999 is to be calculated.
### Input Specification:
Each input file contains one test case, which gives sevarial integers in a line, ending by 9999. Separating each number by a space.
### Output Specification:
For each test case, print in a line average=the value of all numbers, keep 2 decimal digits. No space before, between or behind the line.
### Sample Input:
```in
10 8 11 7 9 9999
```
### Sample Output:
```out
average=9.00
```
answer:If there is no answer, please comment
several integers. Assume the last value read with scanf is the sentinel 9999. A typical input sequence
might be
10 8 11 7 9 9999
indicating that the average of all the values preceding 9999 is to be calculated.
### Input Specification:
Each input file contains one test case, which gives sevarial integers in a line, ending by 9999. Separating each number by a space.
### Output Specification:
For each test case, print in a line average=the value of all numbers, keep 2 decimal digits. No space before, between or behind the line.
### Sample Input:
```in
10 8 11 7 9 9999
```
### Sample Output:
```out
average=9.00
```
answer:If there is no answer, please comment