What is the value of sum after the following code runs?

int sum = 0;
for (int i = 0; i < 3; i++)
{
    for (int j = 1; j <= 5; j++)
    {
        sum = sum + j;
    }
}
45
  • 15
  • 5
  • 3

Remember each time i increases, the internal loop will have repeated 5 times