Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function with prototype
- #include <stdio.h>
- #include <math.h>
- float OOO (float a, float b);
- main()
- { float x,y,n;
- printf("Vvedite A: ");
- scanf("%f",&x);
- printf("Vvedite B: ");
- scanf("%f",&y);
- n=OOO(x,y);
- printf("N = %-5.1f\n\n",n);
- printf("Vvedite A: ");
- scanf("%f",&x);
- printf("Vvedite B: ");
- scanf("%f",&y);
- n=OOO(x,y);
- printf("N = %-5.1f",n);
- }
- //Ìîÿ ïåðâàÿ ôóíêöèÿ íà Ñ++
- float OOO (float a, float b)
- { float c;
- c=sqrt(a*a+b*b)/log(a+b);
- return(c);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement