#include
using namespace std;
#define N 100
int main(){
int i,j;
int a[N] = {0};
for(i=0; i<100; i++){
cout<<"请输入第"<cin>>a[i];
if(a[i]==-1){
cout<<"数据输入结束!"<break;
}
}
cout<<"输入的数据中偶数有:" <for(j=0;j<=i;j++){
if(a[j]%2==0){
cout< }
}
return 0;
}
--------------
运行结果: