Subtraction in c++


Write a program that accept the two integers from the user and display their subtraction?
#include<iostream.h>
int main()
               {
int num1,num2,sub;
cout<<"\n"<<" Enter first number = ";
cin>>num1;
cout<<"\n"<<" Enter second number = ";
cin>>num2;
sub=num1-num2;
cout<<"\n\n"<<" Sub = "<<sub;
system("pause");
return 0;
}