I need help with the total.

Hey, guys I need help trying to total these three columns individually. Thank you.





#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;

int main() {
int sum;

cout << setprecision(2) << fixed;
cout << "_____________________________________________" << endl;
for (int i = 50; i <= 75; i++) {
cout << setw(6) << i << setw(9) << i*i << setw(12) << i*i*i << setw(13) << double(sqrt(i)) << endl;
}
cout << "_____________________________________________" << endl;

return 0;
}
duplicate:

http://www.cplusplus.com/forum/beginner/223524/

Don't do this, it's a waste of time for those who reply. You could get reported for doing it too.
Topic archived. No new replies allowed.