SHARE
TWEET

Untitled

a guest Oct 21st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<math.h>
  3. #include<locale.h>
  4. #include<stdlib.h>
  5. int main(void)
  6. {
  7.     setlocale(LC_ALL, "Russian");
  8. int k, l, c, d, f, e, AB, AC, CB;
  9.     printf("Введите координаты (x y) сторон треугольника AB, AC, и CB соответственно\n");
  10.     scanf_s("%d%d%d%d%d%d",&k,&l,&c,&d,&f,&e);
  11.     (AB = (sqrt(pow((k - c), 2) + pow((l - d), 2))));
  12.     (AC= (sqrt(pow((k - e), 2) + pow((l - f), 2))));
  13.     (CB= (sqrt(pow((e - c), 2) + pow((f - d), 2))));
  14.     if ((AB = CB) || (AB = AC) || (CB = AC))
  15.         printf("Да\n");
  16.     else
  17.         printf("Нет\n");
  18.  
  19.     system("pause");
  20.     system("cls");
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top