Source Code
def add(a,b):
c=a+b
return c
x=int(input("Enter value of a: "))
y=int(input("Enter value of b: "))
z=add(x,y)
print("The sum is :",z)
OUTPUT
Enter value of a: 4Enter value of b: 5The sum is : 9
Source Code
def add(a,b):
c=a+b
return c
x=int(input("Enter value of a: "))
y=int(input("Enter value of b: "))
z=add(x,y)
print("The sum is :",z)
Enter value of a: 4Enter value of b: 5The sum is : 9
Hello, my name is G Krishna. I'm Creating this blog for the students who are beginners.
Learn More →
No comments:
Post a Comment