#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/ ,如需转载,请注明出处,否则将追究法律责任。