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 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?
For each test case, output on a new line the total amount of money that Chef will have to pay.
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 >>