#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
double a;
int x,z,b;
z = 0;
a = 0;
while (x != -1){
a += 1;
scanf("number%d",&x);
z += x;
}
b = z / a;
}