**Physical Address**

304 North Cardinal St.

Dorchester Center, MA 02124

According to a recent survey, Biryani is the most ordered food. Chef wants to learn how to make world-class Biryani from a MasterChef. Chef will be required to attend the MasterChef’s classes for X*X* weeks, and the cost of classes per week is Y*Y* coins. What is the total amount of money that Chef will have to pay?

- The first line of input will contain an integer T
*T*— the number of test cases. The description of T*T*test cases follows. - The first and only line of each test case contains two space-separated integers X
*X*and Y*Y*, as described in the problem statement.

For each test case, output on a new line the total amount of money that Chef will have to pay.

- 1 \leq T \leq 10^41≤
*T*≤104 - 1 \leq X, Y \leq 1001≤
*X*,*Y*≤100

```
Input:
4
1 10
1 15
2 10
2 15
Output:
10
15
20
30
```

**Test case 1:** Chef will be required to attend the MasterChef’s classes for 11 week and the cost of classes per week is 1010 coins. Hence, Chef will have to pay 1010 coins in total.

**Test case 2:** Chef will be required to attend the MasterChef’s classes for 11 week and the cost of classes per week is 1515 coins. Hence, Chef will have to pay 1515 coins in total.

**Test case 3:** Chef will be required to attend the MasterChef’s classes for 22 weeks and the cost of classes per week is 1010 coins. Hence, Chef will have to pay 2020 coins in total.

**Test case 4:** Chef will be required to attend the MasterChef’s classes for 22 weeks and the cost of classes per week is 1515 coins. Hence, Chef will have to pay 3030 coins in total.

```
t=int(input())
for i in range(t):
x,y=map(int,input().split())
print(x*y)
```

```
#include <iostream>
using namespace std;
int main() {
int n,a,b;
cin>>n;
while(n)
{
cin>>a>>b;
cout<<a*b<<endl;
n--;
}
return 0;
}
```

```
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t-->0)
{
int a=sc.nextInt();
int b=sc.nextInt();
System.out.println(a*b);
}
}
}
```

In our experience, we suggest you solve this Biryani classes CodeChef Solution and gain some new skills from Professionals completely free and we assure you will be worth it.

If you are stuck anywhere between any coding problem, just visit Queslers to get the Biryani classes CodeChef Solution

I hope this Biryani classes CodeChef Solution would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.

This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.

Keep Learning!

**More Coding Solutions >>**