c语言 7-9

时间:2021-05-20 15:20:10   收藏:0   阅读:20

创建一个程序,输入一个实数作为面积,求面积为该实数的正方形的边长。

#include <stdio.h>
#include <math.h>

int main(void)
{
    double area;
    puts("please input the area.");
    printf("area = "); scanf("%lf", &area);
    
    printf("the length of the sige: %f.\n", sqrt(area));
    return 0;
}

 技术分享图片

 

原文:https://www.cnblogs.com/liujiaxin2018/p/14789136.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!