Переделать с pascal на python
uses crt;
var x1, y1, x2, y2, x3, y3, x4, y4, k: longint;
begin
read (x1, y1, x2, y2, x3, y3, x4, y4);
k: =0;
if (x2-x1)*(x4-x1)+(y2-y1)*(y4-y1)=0 then k: =k+1;
if (x1-x2)*(x3-x2)+(y1-y2)*(y3-y2)=0 then k: =k+1;
if (x2-x3)*(x4-x3)+(y2-y3)*(y4-y3)=0 then k: =k+1;
if (x1-x4)*(x3-x4)+(y1-y4)*(y3-y4)=0 then k: =k+1;
write (k);
readkey;
end.

Assassin5510 Assassin5510    2   12.12.2019 12:47    3

Другие вопросы по теме Информатика