1#include <iostream>
2using namespace std;
3
4//function declaration
5int addition(int a,int b);
6
7int main()
8{
9 int a,b; //to store numbers
10 int add; //to store addition
11
12 //read numbers
13 cout<<"Enter first number: ";
14 cin>>a;
15 cout<<"Enter second number: ";
16 cin>>b;
17
18 //call function
19 add=addition(a,b);
20
21 //print addition
22 cout<<"Addition is: "<<add<<endl;
23
24 return 0;
25}
26
27//function definition
28int addition(int a,int b)
29{
30 return (a+b);
31}