Back To C++ User Defined Functions Index
//program to create a function that takes two integer arguments calculates difference between them #include
#include
void difference(int,int); void difference(int a,int b) { int diff; diff=a-b; cout<<"difference between two numbers is "<
>a; cout<<"enter value for b"; cin>>b; difference(a,b); getch(); }