标签:include class span 自己 while void bsp 次方 result
#include "stdio.h" double pow(double x,double y); void main(void) { double result; double x=2.0,y=3.0; result=pow(x,y); printf("%f的%f次方为%f",x,y,result); } double pow(double x,double y) { double result=1; while(y) { result*=x; --y; } return result; }
标签:include class span 自己 while void bsp 次方 result
原文地址:https://www.cnblogs.com/zyz322/p/12291634.html