123
double a1[5], a[5]; for (int i=0; i<5; i++) a1[i]= a[i]*100/s;
double a[5], a1[5]; // a[0] = a, a[1]=b, etc. for (int (i=0;i<5;i++) a1[i] = a[i]*100/s;