Advertisement
Makakas

S and C triangle

Jan 25th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. void main()
  4. {
  5.     float a,b,c,s;
  6.     printf("Введите катет А: ");
  7.     scanf("%f",&a);
  8.     printf("Введите катет B: ");
  9.     scanf("%f",&b);
  10.     s=(a*b)/2;
  11.     c=sqrt(a+b);
  12.     printf("c=%f",c);
  13.     printf("s=%f",s);
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement