摘要: 本题要求编写程序,计算平方根序列√​1​​​+√​2​​​+√​3​​​+⋯的前N项之和。可包含头文件math.h,并调用sqrt函数求平方根。 一 代码 #include <stdio.h> #include <math.h> int main() { double N=0,n=0, sum=0; 阅读全文
posted @ 2018-11-27 19:50 杨政辉 阅读(367) 评论(10) 推荐(0) 编辑