#C12608. Multiply Tuple Elements

    ID: 42054 Type: Default 1000ms 256MiB

Multiply Tuple Elements

Multiply Tuple Elements

You are given a list of tuples, where each tuple contains exactly two integers. Your task is to compute the product of the two integers from each tuple and output the results as a sequence of integers. In mathematical terms, for a given tuple \((a, b)\), you need to compute \(a \times b\).

The input will be provided via standard input (stdin), and the output should be printed to standard output (stdout). Make sure that your solution handles edge cases, such as an empty list and negative numbers.

inputFormat

The first line contains an integer \(n\), which denotes the number of tuples. Each of the next \(n\) lines contains two space-separated integers representing the elements of a tuple.

outputFormat

Output a single line with \(n\) integers separated by a single space, where each integer is the product of the corresponding tuple's two numbers.

## sample
3
2 3
4 5
6 7
6 20 42