-
Notifications
You must be signed in to change notification settings - Fork 0
/
biryani classes
33 lines (29 loc) · 1.05 KB
/
biryani classes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Problem
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 weeks, and the cost of classes per week is Y 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 T — the number of test cases.
The description of T test cases follows.
The first and only line of each test case contains two space-separated integers X and Y, as described in the problem statement.
/* package codechef; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc=new Scanner (System.in);
int t=sc.nextInt();
for(int i=0;i<t;i++)
{
int a=sc.nextInt();
int b=sc.nextInt();
int c=a*b;
System.out.println(c);
}// your code goes here
}
}