#include<stdio.h>#include<string.h>intmain(intargc,char*argv[]){inta[20]={0};charbuff[256]={0};char*str=NULL;inti=0;fgets(buff,256,stdin);str=strtok(buff,"");while(str){str=strtok(NULL,"");if(str&&i<20){sscanf(str,"%d",&a[i++]);}}for(i=0;i<20;i++){if(0==a[i]%2&&0==i%2){printf("下标:%d值:%d\n",i,a[i]);}}return0;}