分享
#include <stdio.h>int main()
{
float add(int x , int y);//函数的声明
float a,b,sum;
printf("Please input two numbers:");
scanf("%f,%f",&a,&b);
sum = add(a,b);
printf("The sum = %f\n",sum);
}
float add(int x,int y)
{
int z;
z = x + y;
return(z);
}
页:
[1]