#C9779. Calculate Total Marathon Distance
Calculate Total Marathon Distance
Calculate Total Marathon Distance
Aditya is participating in a marathon where he runs a fixed distance per lap. For each test case, you are given two integers \(X\) and \(Y\), representing the miles per lap and the number of laps respectively. The total distance he will run is calculated using the formula: \(d = X \times Y\).
Your task is to compute the total distance for each test case.
inputFormat
The first line of input contains a single integer T, the number of test cases. Each of the next T lines contains two space-separated integers X and Y, representing the miles per lap and the number of laps respectively.
outputFormat
For each test case, output on a new line a single integer representing the total distance run, calculated as (X \times Y).## sample
1
5 3
15
</p>