Calculate speed
Write a program that takes the distance and the time to print speed in the output
Speed = to move / time
Write a program that takes the distance and the time to print speed in the output
Speed = to move / time
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
distance = float(input("مسافت (متر) را وارد کنید: "))
time = float(input("زمان (ثانیه) را وارد کنید: "))
speed = distance / time
print(f"سرعت: {speed} متر بر ثانیه")
a = int(input("number1:")) s= int(input("number2:")) print(a/s)
x = int(input('lotfan masafat ra be metr vared konid')) # Distance traveled to meter y = int(input('lotfan zaman ra be sanie vared konid')) # Distance traveled to seconds s = (x/y) # Formula Calculate speed print (s)
x = int(input("x: "))
time = int(input("time: "))
v = x / time
print("v: " , v)
t = int(input('time: '))
d = int(input('displacement: '))
v = t / d
print(f'velocity: {v}')
def ss(): while True: jabejaee = int(input("entre your number jabejaee:")) if jabejaee <= 0: break s = int(input("entre your number s:")) if s <= 0: break sorat = jabejaee / s # The speed is equal to the displacement divided by time print(f"sorat: {sorat}") ss()
I got the same number for this.
a=float(input("enter the masafat:")) b=float(input("enter the sorat:")) result=a/b print(result)
Submitting answers is currently unavailable.
You must be logged in to access this section.
Login/Sign up If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.