float a[10] = {100.3, 98.5, 94.5, 88.8, 76.9, 45.5, 67.7, 13.3, 24.6, 66.6};
int min = 0, max = 0;
for (int k = 0; k < 10; ++k)
if (a[k] > a[max])
max = k;
else if (a[k] < a[min])
min = k;
printf("max = a[%d] = %.1f\nmin = a[%d] = %.1f", max, a[max], min, a[min]);