We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Python
  3. Introduction
  4. Arithmetic Operators
  5. Discussions

Arithmetic Operators

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

Sort 954 Discussions, By:

recency

Please Login in order to post a comment

  • a0921089963
    3 days ago+ 0 comments

    if name == 'main': a = int(input()) b = int(input()) nums = [a+b, a-b, a*2 and a*b] for i in nums: print(i)

    0|
    Permalink
  • vanhongquan12345
    5 days ago+ 0 comments

    a = int(input()) b = int(input()) if a and b in range(1, pow(10, 10)): print(a + b) print(a - b) print(a * b)

    0|
    Permalink
  • amaqueiemmanuel1
    1 week ago+ 1 comment

    if name == 'main': a = int(input()) b = int(input())

    x = a + b, a - b, a * b
    
    for i in x:
        print(i)
    
    1|
    Permalink
  • tarandeep17
    2 weeks ago+ 1 comment

    check out my solution

    if __name__ == '__main__':
        a = int(input())
        b = int(input())
        
        if (1<=a<=10**10) and (1<=b<=10**10):
            print(a+b)
            print(a-b)
            print(a*b)
    
    0|
    Permalink
  • antares02
    2 weeks ago+ 1 comment

    My code: if name == 'main': a = int(input()) b = int(input()) print(a+b) print(a-b) print(a*b)

    0|
    Permalink
Load more conversations

Need Help?


View tutorial
View editorial
View top submissions
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy