The World of Numbers
Given two integers, and , find their sum, difference, product, and quotient.
Input Format
Two lines containing one integer each ( and , respectively).
Sample Input
5
2
Sample Output
7
3
10
2
Explanation
5 + 2 = 7
5 - 2 = 3
5 * 2 = 10
5 / 2 = 2 (Integer part)
5 - 2 = 3
5 * 2 = 10
5 / 2 = 2 (Integer part)
Solution
read x
read y
echo $((x + y))
echo $((x - y))
echo $((x * y))
echo $((x / y))
Written By Sanjay Kumar
Written By Sanjay Kumar
Comments
Post a Comment