编程论坛» 论坛事务 » 新人交流区 » 请教一下这道!用for循环怎么做!
注册会员
查看详细资料
TOP
新手上路
int i=1,j=1;long count=0,count1=0;for(j,j<11,j++){for(i,i<j,i++){count1=count1+i*(i-1);}count=count+count1;}