7-4
![](http://images0.cnblogs.com/blog/571409/201310/09075403-b8a8f1ae71434c59922c34a984bf2b2b.png)
#include<stdio.h> int main(void) { int i,index,n; int a[10]; printf("Enter n:"); scanf("%d",&n); printf("Enter%d integers:",n); for(i=0;i<n;i++) scanf("%d",&a[i]); index=0; for(i=1;i<n;i++) if(a[i]<a[index]) index=i; printf("min is %d\tsub is %d\n",a[index],index); return 0; }