Arithmetic Operators

Sort by

recency

|

1135 Discussions

|

  • + 0 comments

    if name == 'main': a = int(input()) b = int(input()) print(f"{a + b}\n{a - b}\n{a*b}")

  • + 0 comments

    if name == 'main': a = int(input()) b = int(input()) print(f"{a + b}\n{a - b}\n{a*b}")

  • + 0 comments
    if __name__ == '__main__':
        a = int(input())
        b = int(input())
        
        print(a + b)
        print(a - b)
        print(a * b)
    
  • + 0 comments

    Python Solution:

    if name == 'main': a = int(input()) b = int(input()) print(a+b,a-b,a*b, sep = "\n")

  • + 0 comments
    if __name__ == '__main__':
        a = int(input())
        b = int(input())
        print(str(a+b))
        print(str(a-b))
        print(  str(a*b))