What output will be produced by the following code segment?i…

Questions

Whаt оutput will be prоduced by the fоllowing code segment?int sum = 0;for (int int1=0; int1