304 North Cardinal St.
Dorchester Center, MA 02124

# Biryani classes CodeChef Solution

## Problem – Biryani classes CodeChef Solution

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 XX weeks, and the cost of classes per week is YY coins. What is the total amount of money that Chef will have to pay?

#### Input Format

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

#### Output Format

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

#### Constraints

• 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

#### Explanation:

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.

### Biryani classes CodeChef Solution in Python3

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

### Biryani classes CodeChef Solution in C++14

#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;
}

### Biryani classes CodeChef Solution in Java

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);
}

}
}
##### Biryani classes CodeChef Solution Review:

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

Find on CodeChef

##### Conclusion:

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 >>

LeetCode Solutions

Hacker Rank Solutions

CodeChef Solutions