#include float f[]={20,57,87,92,68, 46,16, 9, 4, 1}; float e[]={19.4717, 58.8534, 88.9421, 89.6092, 67.7110, 40.9313, 20.6191, 8.9030, 3.3637, 1.1296}; main(){ float sum = 0; for(int i = 0; i < 10; i++) sum += (e[i]-f[i])*(e[i]-f[i])/e[i]; cout << sum; }