int a = 0;
int b = 3;

int somma = 0;

for (int i = a; i < b; i++)
{
somma += a;
}

cout << "La somma è " << somma << endl;