Arithmetic Operators - Hackerrank solutions

 

Arithmetic Operators


Task


The provided code stub reads two integers from STDIN, a and b. Add code to print three lines where:

1.The first line contains the sum of the two numbers.
2.The second line contains the difference of the two numbers (first - second).
3.The third line contains the product of the two numbers.


Solution:

a = int(input())
b = int(input())
print(a+b)
print(a-b)
print(a*b)


Note:

This Code is Verified by all Test Cases.If any error occurs then Comment correct code Below in comment box.

Disclaimer:-

 The above hole problem statement is given by hackerrank.com, but the solution is generated by the CodexRitik . if any of the query regarding this post or website fill the following contact form Thank You. 


Arithmetic Operators - Hackerrank solutions Arithmetic Operators - Hackerrank solutions Reviewed by CodexRitik on March 15, 2020 Rating: 5

No comments:

Powered by Blogger.