Consider the following method.
public int sol(int lim)
{
int s = 0;
for (int outer = 1; outer <= lim; outer++)
{
for (int inner = outer; inner <= lim; inner++)
{
s++;
}
}
return s;
}
What values is returned as a result of the call sol(10)?
A) 20
B) 45
C) 55
D) 100
E) 385