#include int main() { // déclaration const int n = 6; //int tab[n]; int tab[]={2,6,1,7,3,9}; //Read the elements of the table puts("please enter the elemnts:"); for(int i=0;imax) { max=tab[i]; indMax=i; } } printf("\n"); printf("min val=%d,min ind=%d\n",min,indMin); printf("max val=%d,max ind=%d\n",max,indMax); // Sum of table elements int sum=0; for(int i=0;i