Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- float _sin(float a, float b);
- int main()
- {
- /*переменные а-первый катет, b-второй, c-гипонетуза*/
- float a, b, sin;
- printf("Protivopolognaya storona!");
- scanf_s("%d", &a);
- getchar();
- printf("Gipotenyza");
- scanf_s("%d", &b);
- getchar();
- printf("%f", _sin(a, b));
- getchar();
- }
- /*функция*/
- float _sin(float a, float b)
- {
- float sin;
- sin = a / b;
- return sin;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement