//#include "stdafx.h"//vc++6.0加上这一行.
#include
using namespace std;
void main(void){
int n,x,sos,soc,i;
while(1){
cout << "Type an integer(1<=n<=100)...\nn=";
cin >> n;
if(n>0 && n<101) break;
cout << "Error! Rdo: ";
}
for(sos=soc=i=0;i
if(x&1) sos+=x*x;
else soc+=x*x*x;
}
cout << sos << ' ' << soc << endl;
}