Arithmetic Operators

Sort by

recency

|

1156 Discussions

|

  • + 0 comments

    A Civil Lawyer might help if there's a legal dispute over contracts related to calculations or business agreements, but solving basic math like this isn't their specialty.

  • + 0 comments

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

    Sum=a+b
    Difference=a-b
    Product=a*b
    print(Sum,Difference,Product, sep="\n")
    

    Here the argument "sep" works like an Delimiter

  • + 0 comments
    if __name__ == '__main__':
        a = input()
        b = input()
        for i in "+-*":
            print(eval(a+i+b))
    
  • + 0 comments

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

    print(a + b) print(a - b) print(a * b)

  • + 0 comments

    For Python3 Platform

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