Untitled
public text v1 · immutable#include<iostream> //NO .h here
int subtract(int n1, int n2); // Function prototype
int main()
{
int no1, no2;
cout<<"Enter two numbers:"<<endl;
cin>>no1>>no2;
cout<<"The difference is:"<<endl;
cout<<subtract(no1,no2); // Function call
}
int subtract(int n1, int n2) // Function definition
{
return n1 - n2;
}