使用方法:
#include <math.h>
a = sqrt(b);
注意:
1. sqrt()函数是向下取整,即sqrt(10)=3
2. 浮点型使用sqrt()后,输出结果为int整数型
【C语言】开平方公式,根号下x的函数使用:sqrt()
阅读 37
2022-03-14
#include <math.h>
a = sqrt(b);
1. sqrt()函数是向下取整,即sqrt(10)=3
2. 浮点型使用sqrt()后,输出结果为int整数型
相关推荐
精彩评论(0)