c语言程序 求两个数的乘积
问答
36917
c语言程序 求两个数的乘积
-
小悟空专业问答知识小百科评论
#include <stdio.h>
double mul(float fac , float mult);
int main(void)
{
double product;
float num1,num2;
printf("enter two number");
while(scanf("%f %f",&num1 , & num2) == 2)
{
product = mul(num1 , num2);
printf("product = %lfn",product);
printf("enter two number");
}
printf("enter err");
return 0;
}
double mul(float fac, float mult)
{
return((fac * mult));
}
2024-10-06 09:40:06