ITPub博客

首页 > 应用开发 > > 向大佬提问,为什么我输a=1.1,b=1.1,结果s却是一堆懵逼的数字?

向大佬提问,为什么我输a=1.1,b=1.1,结果s却是一堆懵逼的数字?

作者:smanzheng 时间:2019-08-01 09:48:53 0 删除 编辑
#include<math.h>

double area(double a,double b)

{double s=a*b;

return s;}

#include<stdio.h>

main(){

double a, b ,s;

printf("how much is your long");

scanf("%f",&a);

printf("how much is your wide");

scanf("%f",&b);

s=area(a,b);

printf("%f",s);

}

<br>


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4759/viewspace-3119547/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: python能开发什么
请登录后发表评论 登录
全部评论

注册时间:2019-04-25

  • 博文量
    115
  • 访问量
    1240