Posts by Edson Vasconcelos • 11 points
1 post
-
1
votes3
answers11601
viewsA: How to calculate the Euclidean distance
What you can also do is create a function that does the exponentiation and uses it to compute the square of the number. Example: int exp (int num){ return num * num; } distancia = sqrt((exp(x2 -…