Python programs coding series - Basic Arthmetic operations
Basic Arthmetic operations
#Arithmetic of 2 numbers
a = input(“Enter First number”) b = input(“Enter Second number”)
Result = int(a)+int(b) print(“The output of “+a+”+“+b+”=“+str(Result))
Result = int(a)-int(b) print(“The output of “+a+”-“+b+”=“+str(Result))
Result = int(a)*int(b) print(“The output of “+a+“x”+b+”=“+str(Result))
Result = int(a)/int(b) print(“The output of “+a+”/“+b+”=“+str(Result))
Output
Enter First number6 Enter Second number3 The output of 6+3=9 The output of 6-3=3 The output of 6x3=18 The output of 6/3=2.0
