Arithmetic Operators

  • + 0 comments

    We read two integers from input and store them in variables a and b. Then we perform basic arithmetic operations.

    1. First print the sum using a + b

    2. Second print the difference using a - b

    3.Third print the product using a * b

    Code For if not understand:

    a = int(input()) b = int(input())

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