Advertisement
MochaGovno

func, (prototype)

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