Leaderboard
Showing:
Handle Score
@Ibrahim Nash 6420
@blackshadows 6380
@mb1973 5642
@Quandray 5233
@akhayrutdinov 5111
@saiujwal13083 4610
@sanjay05 3762
@kirtidee18 3673
@marius_valentin_dragoi 3522
@sushant_a 3459
@verma_ji 3413
Complete Leaderboard
C++ Input / Output
School Accuracy: 73.98% Submissions: 7409 Points: 0

Given two integers A and B. Your task is to return their product.

 

Example 1:

Input:
A = 1, B = 2
Output:
2
Explanation:
Multiplication of 1 and 2 is 2.

 

Example 2:

Input:
A = 8, B = 7
Output:
56
Explanation:
Multiplication of 8 and 7 is 56.

 

Your Task:

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)

 

Constraints:
0<=a,b<=10000

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.

C++ Input / Output

Output Window