PROBLEM 20
Easy

Distance from Speed and Time

Programming Basics · Python

</>
STATUS Not solved

TASK

Problem

#20

Given speed `v` and time `t`, print distance traveled.

EXAMPLE

Example

Input
60 2.5
Output
150.0

LIMITS

Constraints

Physical and monetary quantities that cannot be negative are non-negative; the absolute value of other numeric inputs is at most 10^9.
📖
LEARN Theory for this problem
+

`input()` reads data entered by the user. The result of `input()` is initially a string. `split()` separates one input line into individual values using spaces. `map()` applies the specified conversion to each input value. The `*` operator multiplies numbers. `print()` displays the program result. Print only what the problem statement requires.

**Connection to this task.** The `*` operator multiplies numeric values. In formulas it naturally models repeated contribution, such as price × quantity, speed × time, or side × side. The expression `v * t` shows how this idea is applied to the task data.

💡
NEED HELP? Hints
+

['Distance is `v * t`.']

ANSWER Solution
+
v, t = map(float, input().split())
result = v * t
print(result)