python input method and type casting program
print("PROGRAM FOR ADDITION")
print("input value of a :")
a=input() #input method used for takind input
print("input value of b :")
b=input() #input method used for takind input
print("addition of a and b is : ",int(a)+int(b)) #type casting variable a and b to integer
Comments
Post a Comment