Chef wants to attend the Masterchef’s classes for X weeks. The cost of classes per week is Y coins. What is the total amount that the Chef will have to pay?
The main objective of this problem is to test the user’s ability to read multiple inputs on different lines.
The total amount to be paid is = (Cost per week x Number of weeks) = X * Y
Time complexity is O(1).
for _ in range(int(input())): x,y = map(int,input().split()) print(x*y)