Advertisement
MochaGovno

function

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