1递增5次,用递归的方式实现
response.write(sum(0,1));
protected int sum(int t, int value)
{
int h;
for (h = t; h < 5; )
{
h++;
value++;
sum(h, value);
}
return value;
}