fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5.  
  6.  
  7. int main()
  8. {
  9. float f(float d,float y,float m,float e);
  10. float a,b,c,d,S;
  11. printf("Write 4 elements: ");
  12. scanf("%f%f%f%f",&a,&b,&c,&d);
  13. S=f(a,b,c,d);
  14. printf("Result = %10f",S);
  15. return 0;
  16. }
  17.  
  18.  
  19. float f(float d,float y,float m,float e){
  20. return (pow(e,(-d*y)))/(d*(4*d*y+m));
  21. }
Success #stdin #stdout 0s 4392KB
stdin
-1 10 1 10
stdout
Write 4 elements: Result = 256410256.000000