Back

Problem Statement Given two integers a and b, your task is to calculate each of the following values:- a + b a - b a * b a/b

Created 2 years ago
382 Views
2 Comments
AnantM6ssd0
@AnantM6ssd0
AnantM6ssd0
@AnantM6ssd0Profile is locked. Login

Input

User Task:
Since this will be a functional problem, you don't have to take input. You just have to complete the function
operations() that takes the integer a and b as parameter.

Constraints:
1 <= b <= a <= 1000

Note: It is guaranteed that a will be divisible by b.

Output

Print the mentioned operations each in a new line.

Example

Sample Input:
15 3

Sample Output:
18
12
45
5

Comments (2)
Please login to comment.