Just a comment

This commit is contained in:
tiagorg 2022-10-20 22:21:55 +01:00
parent 6dfc4f9490
commit 3c89de76e4
Signed by untrusted user who does not match committer: TiagoRG
GPG Key ID: DFCD48E3F420DB42
2 changed files with 3 additions and 14 deletions

View File

@ -1,14 +0,0 @@
from math import sqrt
x1, y1 = input("Introduza x1 e y1, separados por uma virgula ',': ").split(',')
x2, y2 = input("Introduza x2 e y2, separados por uma virgula ',': ").split(',')
x1 = float(x1)
y1 = float(y1)
x2 = float(x2)
y2 = float(y2)
distancia = sqrt((x2 - x1)**2 + (y2 - y1)**2)
print('A distancia entre os dois pontos é: ', distancia)

View File

@ -1,5 +1,8 @@
// .NET core 6.0
// This is just a C# version of the python solution:
// https://github.com/TiagoRG/uaveiro-leci/blob/master/1ano/fp/aula02/darts.py
namespace Darts
{
internal class Program