mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
lesson 10 now it should work
This commit is contained in:
1 parent
ec00465078
commit
9d3fc38b3c
1 file changed
+1
-1
@@ -15,7 +15,7 @@ int main(void) {
|
|||||||
scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
|
scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
|
||||||
|
|
||||||
Point a = {x1, y1};
|
Point a = {x1, y1};
|
||||||
Point b = {y2, x2};
|
Point b = {x2, y2};
|
||||||
/* TODO: build a from (x1, y1) and b from (x2, y2). */
|
/* TODO: build a from (x1, y1) and b from (x2, y2). */
|
||||||
|
|
||||||
printf("%d\n", dist2(a, b));
|
printf("%d\n", dist2(a, b));
|
||||||
|
|||||||
Reference in new issue
Block a user