// total mass of N balls #include #include using namespace std; const int N = 100; // no. of balls int main() { double M=0; // partial sum, which becomes total mass for (int i=0; i