只有注册用户登录后才能阅读该文。 阅读全文
摘要:
描述ThenthTriangularnumber,T(n) = 1 + … +n, is the sum of the firstnintegers. It is the number of points in a triangular array withnpoints on side. For exampleT(4):X X X X X X X X X XWrite a program to compute the weighted sum of triangular numbers:W(n) =SUM[k= 1…n;k*T(k+ 1)]输入The first line of input 阅读全文