nt second(int value[],int n) { int first = value[0]; int second = value[1]; int i = 0; for(i = 0;i < n;i++) { if(value[i] > first) { second = first; first = value[i]; } else if(value[i] < first && value[i] > second) { second = value[i]; } } return second; } int main() { int value[6]; printf("数入6个数: "); int i = 0; for(i = 0; i < 6;i++) { scanf("%d",&value[i]); } printf("第二大数为:%d ",second(value,6)); return 0; }