fork download
  1. #include <stdio.h>
  2.  
  3. double sum(double, double);
  4.  
  5. int main(void) {
  6. double a,b,c;
  7. a = 1.5;
  8. b = 2.8;
  9. c =sum(a,b);
  10. printf("%f +%f = %f\n",a,b,c);
  11. return 0;
  12. }
  13.  
  14. double sum(double x, double y){
  15. return x+y;
  16. }
  17.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
1.500000 +2.800000 = 4.300000