大佬求解!,为什么我输long是1.1,wide是1.1,结果出来一大串不知所云的数字。根本不是结果
#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);
}