Check my code, please!

I have a C2106 problem in '' sum = a / b + = a / b; ''
here is how to solve it?

1
2
3
4
5
6
7
8
9
10
{
	int a, b;
	int sum;
	for (a = 1; a < 11; a++)
	{
		for (b = 2; b < 12; b++)
		sum = a / b += a / b;
	}
	cout << sum << endl;
}Put the code you need help with here.
The expression is meaningless, and I'm not entirely sure what you might have meant to write. Maybe this?
 
sum += a / b;
Thanks for the help! Everything works as it should!
Topic archived. No new replies allowed.