+ 2
Challenge not easy
this time geometry will help ask the user two input as a coordinate (x,y) and show a line passing from (3.5,2.1) to (x,y) in xy plane and also tell the distance between two points
3 Réponses
0
#enter x coordinate
#enter y coordinate
import math
foo = int(input())
bar = int(input())
def distanceFinder(x,y):
x -= 3.5
y -= 2.1
x **= 2
y **= 2
spam = x + y
distance = math.sqrt(spam)
print(distance)
distanceFinder(foo,bar)
- 1
can u send a full code
- 1
can u send a full code