#include main() { double z[] = {78.2, 45.4, 100, 35.7, 80.5, 42.8, 120.4, 90.5}; double zz=0; for(int i=0; i<8;i++) zz+=z[i]*z[i]; cout << zz; }