开平方使用sqrt()函数 使用方法: 包含于math.h头文件 sqrt(float * number),返回number的开平方数,返回值为浮点型 参考:https://blog.csdn.net/ycl1989y/article/details/7819485