#include<iostream>usingnamespace std;
intmain( void ){
int y;
int x = 3;
int total = 0;
while ( x <= 10 ) {
y = x * x * x;
cout<<y<<endl;
total += y;
++x;
} // end while
cout<< "The total is: "<< total <<endl;
int pause;
cin>>pause;
return0;
} // end main