Advertisement
MochaGovno

func (file)

May 23rd, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. function (other file)
  2. #include <stdio.h>
  3. #include <math.h>
  4. #include "func.cpp"
  5.  
  6. main()
  7. { float x,y,n;
  8.  
  9. printf("Vvedite A: ");
  10. scanf("%f",&x);
  11. printf("Vvedite B: ");
  12. scanf("%f",&y);
  13.  
  14. n=OOO(x,y);
  15. printf("N = %-5.1f\n\n",n);
  16.  
  17.  
  18. printf("Vvedite A: ");
  19. scanf("%f",&x);
  20. printf("Vvedite B: ");
  21. scanf("%f",&y);
  22. n=OOO(x,y);
  23. printf("N = %-5.1f",n);
  24.  
  25. }
  26.  
  27.  
  28. #include <math.h>
  29. float OOO (float a, float b)
  30. { float c;
  31.    c=sqrt(a*a+b*b)/log(a+b);
  32.    return(c);
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement