01.
do
{
02.
printf(
"input number (-1 to exit): "
);
03.
scanf(
"%d"
,&a);
04.
05.
if
(a!=-1){
06.
num[count)=a;
07.
count++; }
08.
else
{
09.
printf(
"-------------------"
);
10.
printf(
"show input data"
); }
11.
12.
}
while
(a!=-1);
13.
for
(i=0;i<count;i++){
14.
printf(
"\nthe number of inputs is %d "
,num[i]);
15.
}
16.
}