HackerRank- Arithmetic Operators in Python



Problem 3:

Read two integers from STDIN and print three lines where:

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



  1. if __name__ == '__main__':
  2. a = int(input())
  3. b = int(input())
  4. print(a+b)
  5. print(a-b)
  6. print(a*b)

download android app