thank you so much for the help. took me so long but i finally got it.
i = n1;
val = 0;
while (i < n2)
{
val = val + i;
i = i + 1;
}
val = val+n2;
it works
thank you so much for the help. took me so long but i finally got it.
i = n1;
val = 0;
while (i < n2)
{
val = val + i;
i = i + 1;
}
val = val+n2;
it works