Bob103

Незаконченный

Sep 23rd, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. float otrezok(float x1, float y1, float x2, float y2)
  5. {
  6. float result;
  7. result = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
  8. return result;
  9. }
  10. bool IsTriangle(double a, double b, double c)
  11. {
  12. return (a < b + c) && (b < a + c) && (c < a + b);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment