int main()
{ double max, count;
bool x;
for(;x;){
cout<<"Please input the maximum value: ";
cin>>max;
for(count=2; count<=max; count+=2){
cout<<count*count*count;
cout<<" ";
}
cout<<"\nWould you like to go again? (1=yes 0=no): ";
cin>>x;
}
return 0;
}
Basically I need the code to give the sum of the cubes of the even numbers between 2 and a chosen maximum value. Right now, all I can get it to do is give a list of the cubes. I don't know how to add these numbers up. Please help!