int sum(int a, int b){ return a + b; } //sum two numbers by sum function void main(){ int a,b,s; cout<<"enter the first number:"; cin>>a; cout<<"enter the second number:"; cin>>b; s=sum(a,b); cout<<"the sum of two numbers is:"<<s; }