i have a question is there any way that i can add up all the value in a multiplication table i create or parscal triangle i created? if yes i need to find out how to add up all values in a multiplication table. i can't figure out the logic behind how, its frustrating.

the code will be like this:

```
#include <iostream>
using namespace std;
int main()
{
int i, j, total;
for (int i=0; i<10; i++)
{
for(int j=0; j<10; j++)
{
cout << i*j;
total = i + j;
cout << total;
}
cout << endl;
}
return 0;
}
```

i know the above code doesn't work but i dont get it. why????????