摘要:
/*输出数组的最大值和最大值所对应的下标*/#includeint main(void){ int i,k,n; int a[10]; printf("enter n:"); scanf("%d",&n); printf("enter %d intergers:",n); for(i=0;ia[k]) k=i; /*输出最大值及其下标*/ printf("最大值是%d\n下标是%d\n",a[k],k); return 0;}printf("enter %d intergers:",n) 阅读全文