private static int fun(
int m)
{
int temp =
0;
for (
int i =
1; i <= m; i++
)
{
if (i %
2 ==
1)
temp = temp +
i;
else
temp = temp -
i;
}
return temp;
}
转载于:https://www.cnblogs.com/wupeiqi/p/3148888.html
相关资源:数据结构—成绩单生成器
转载请注明原文地址: https://win8.8miu.com/read-1560115.html