#K83462. Turtle Position Calculation

    ID: 36203 Type: Default 1000ms 256MiB

Turtle Position Calculation

Turtle Position Calculation

In this problem, you are given several test cases. In each test case, a turtle moves at a constant speed and you need to compute its final position after a given duration.

For each test case, you are given two integers:

  • S: the speed of the turtle (in units per second)
  • D: the duration of time (in seconds)

The final position of the turtle is calculated using the formula: $$Position = S \times D$$

You will be given an integer T representing the number of test cases, followed by T lines each containing the two integers. For each test case, print the final position on a new line.

inputFormat

The first line contains an integer T (the number of test cases). Each of the following T lines contains two space-separated integers S and D, representing the speed of the turtle and the duration, respectively.

outputFormat

For each test case, output a single integer representing the final position of the turtle after D seconds, each on its own line.

## sample
3
2 5
10 100
7 1
10

1000 7

</p>