Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 5, 2020 10:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#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