Array ( [0] => [1] => questions [2] => Basic [3] => Arithmetic-Operations ) Basic | Arithmetic Operations | THE INQUISITIVE





Arithmetic Operations

LEVEL:Beginner

Description

Given two integers. You have to perform the addition, subtraction, multiplication, division and modulo division of those two numbers.

Input Format

First line contains two integers separated by space.

Output Format

Perform each and every operation and print the values separated by space .


Example 1:

Input
1 3
Output
4 -2 3 0 1
Example 2:

Input
5 7
Output
12 -2 35 0 5
Example 3:

Input
10 12
Output
22 2 120 1 2

oops

Login to see Discussion




Approach


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.

oops

Login to see Solution