Can you check please | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
5th Jul 2018, 4:29 PM
Polina
Polina - avatar
5 Antworten
+ 4
Hello, Polina ! Unfortunately, the Q / A section was created only on questions specifically related to programming, your question can not be related to the programming criteria https://www.sololearn.com/discuss/1316935/?ref=app
5th Jul 2018, 4:37 PM
Alexander Sokolov
Alexander Sokolov - avatar
0
Polina An point its represented with [x,y] couple but FOR EITHER POINTS. Then you have read two x, and two y....
5th Jul 2018, 5:03 PM
KrOW
KrOW - avatar
0
I don't think so, because it is reading it as the same variable
5th Jul 2018, 5:06 PM
Polina
Polina - avatar
0
It's only the distance between one point in 2D to the origin. As KrOW had already mentioned, you need input for x and y coordinate of BOTH points Then the distance between point a=(x1,x2) and b=(x2,y2) is calculated by sqrt((x1-x2)² + (y1-y2)²)
5th Jul 2018, 5:23 PM
Matthias
Matthias - avatar
0
ah, okay, understand
5th Jul 2018, 5:24 PM
Polina
Polina - avatar