C++ program to perform long division