1
0

c7-4-1.c 281 B

12345678910111213141516
  1. #include <stdio.h>
  2. int main()
  3. {float add(float x, float y);
  4. float a,b,c;
  5. printf("Please enter a and b:");
  6. scanf("%f,%f",&a,&b);
  7. c=add(a,b);
  8. printf("sum is %f\n",c);
  9. return 0;
  10. }
  11. float add(float x,float y)
  12. {float z;
  13. z=x+y;
  14. return(z);
  15. }