#include<iostream>using namespace std;int main(){ int a,b,c,d,e=0; while(cin>>b) { if(b==0) break; for(a=1;a<=b;a++) { cin>>c; d=c*c; e+=d; } cout<<e<<endl;}system("pause");}
有人能幫忙看一下嗎?