求s=1x2x3+2x3x4+3x4x5+…+18x19x20的c语言程序怎么写

如题所述

int i=1,s=0;do{s=s+i*(i+1)*(i+2);while(i<=18);
温馨提示:内容为网友见解,仅供参考
第1个回答  2014-12-27
是收
相似回答
大家正在搜