Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- struct ToaDo
- {
- float x;
- float y;
- };
- float tinhKhoangCach ( ToaDo A, ToaDo B)
- {
- float result = sqrt( (A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y));
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement