int a = 1, b = 1, c = 0; do { b *= a; c += b; a++; } while (a <= 10); Console.WriteLine(c);
本文标题:求1!+2!+3!+…+10!
本文链接:https://www.haomeiwen.com/subject/ncfqcqtx.html
网友评论