当前位置:首页>维修大全>综合>

pow函数的用法(pow函数的用法python)

pow函数的用法(pow函数的用法python)

更新时间:2025-08-01 18:07:46

pow函数的用法

原型:extern float pow(float x, float y); 用法:#include <math.h> 功能:计算x的y次幂。 说明:x应大于零,返回幂指数的结果。 举例: // pow.c #include <syslib.h> #include <math.h> main() { clrscr()

; // clear screen textmode(0x00)

; // 6 lines per LCD screen printf("4^5=%f",pow(4.,5.)); getchar(); return 0; }

更多栏目