摘要: 第一题: #include <stdio.h> double fun(double x,int n){ if(n==0) return 1; else if(n==1) return x; else return x*fun(x,n-1); } int main(){ printf("请输入实数x和 阅读全文
posted @ 2020-10-06 23:52 薄眠抛却陈年事。 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 第一题代码: #include <stdio.h> #include <math.h> #define N 10 int main(){ int i,j,k; double t=0.0,a,b,c; FILE *fp=fopen("data.txt","w+"); for(i=0;i<N;i++){ 阅读全文
posted @ 2020-10-06 23:49 薄眠抛却陈年事。 阅读(343) 评论(0) 推荐(0) 编辑