include "stdio.h"int fun(int a[],int n){ int max=a[0],x=0;for(int i=0;i<n;i++)if(max<a[i]){ max=a[i];x=i;} return x;} main(){ int a[100],n,i;scanf("%d",&n);for(i=0;i<n;i++)scanf("%d",&a[i]);printf("%d\n",fun(a,n));} ...