Please enter your email address or userHandle.
Given two integers A and B. Your task is to return their product.
A = 1, B = 2
Multiplication of 1 and 2 is 2.
A = 8, B = 7
Multiplication of 8 and 7 is 56.
You don't need to read input or print anything. Your task is to complete the function multiplication() which takes two integers a and b and returns their product.
Expected Time Complexity: O(1)
Expected Auxiliary Space: O(1)
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.