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 876 Discussions, By:

recency

Please Login in order to post a comment

  • innocentcharles2
    4 days ago+ 0 comments

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

    sub = a - b
    print(sub)
    
    mul = a * b
    print(mul)
    
    0|
    Permalink
  • geraldjamesadvi1
    5 days ago+ 0 comments

    print(str(a+b) + "\n" + str(a-b) + "\n" + str(a*b))

    0|
    Permalink
  • aswini0509
    1 week ago+ 0 comments
    print(a+b)
    
    print(a-b)
    
    print(a*b)
    
    -2|
    Permalink
  • rohithkumarn98
    1 week ago+ 0 comments

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

    -1|
    Permalink
  • dannyheym
    2 weeks ago+ 0 comments

    if name == 'main': a = int(input()) b = int(input()) res = a ++ b res1 = a - b res2 = a * b print(res) print(res1) print(res2)

    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