#include "stdafx.h" void main(int argc, char* argv[]) { int i,flag,data[15]; flag=0; printf("Input numbers:/n"); for(i=0;i<=15;i++) scanf("%d",&data[i]); for(i=0;i<=15;i++) if(data[i]==10) { printf("10 is inputed in the position%d./n",i+1); flag=1;//标记10在输入数据中。 break; } if(flag==0) printf("10 is not in numbers"); }//输入如下一组数据:12,13,23,89,77,90,56,1,6,11,5,9,10,17,65,则输出10 is inputed in the position 13.