Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- float otrezok(float x1, float y1, float x2, float y2)
- {
- float result;
- result = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
- return result;
- }
- bool IsTriangle(double a, double b, double c)
- {
- return (a < b + c) && (b < a + c) && (c < a + b);
- }
Advertisement
Add Comment
Please, Sign In to add comment