Array ( [0] => [1] => questions [2] => Basic [3] => Arithmetic-Operations )
Given two integers. You have to perform the addition, subtraction, multiplication, division and modulo division of those two numbers.
First line contains two integers separated by space.
Perform each and every operation and print the values separated by space .
1 3
4 -2 3 0 1
5 7
12 -2 35 0 5
10 12
22 2 120 1 2
Login to see Discussion
Approach-i) Perform the arithmetic operations and return the answer
Time Complexity: O(1)
Space Complexity: O(1)
Note :
Let us know if you can come up with a better approach, mail us at support@theinquisitive.in Your approach will be reviewed and posted with credits to you.
Login to see Solution