-
-
Save amankharwal/7ce63b526a66505332ae1afa0d1df612 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
int add(int num1, int num2){ | |
int sum = num1 + num2; | |
return sum; | |
} | |
int main(){ | |
int a, b; | |
cout<<"Enter a :"; | |
cin>>a; | |
cout<<"Enter b :"; | |
cin>>b; | |
cout<<add(a,b)<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment