Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 5, 2020 10:58
Show Gist options
  • Save amankharwal/7ce63b526a66505332ae1afa0d1df612 to your computer and use it in GitHub Desktop.
Save amankharwal/7ce63b526a66505332ae1afa0d1df612 to your computer and use it in GitHub Desktop.
#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