We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f581e7e commit 5a5314bCopy full SHA for 5a5314b
addition using function
@@ -0,0 +1,9 @@
1
+#Python program to add two numbers using function
2
+
3
+def add_num(a,b):#function for addition
4
+ sum=a+b;
5
+ return sum; #return value
6
7
+num1=25 #variable declaration
8
+num2=55
9
+print("The sum is",add_num(num1,num2))#call the function
0 commit comments