摘要: 代码如下 1 #include<stdio.h> 2 float f(float x,int n){//定义x的n次幂 3 4 float s; 5 if(n==1)s=x; 6 else if(n>1) 7 { 8 s=x*f(x,n-1);//x乘上x的n-1次幂 9 } 10 return s 阅读全文
posted @ 2022-09-13 21:10 码羊 阅读(180) 评论(0) 推荐(0)