如题所述
参考代码如下:
/*运行结果如下:*/
输入n:3
S=48.333333
--------------------------------
Process exited after 6.705 seconds with return value 11
请按任意键继续. . .