int main() { int number, base; cout<<"Input number and base: "; cin>> number >> base; if(base >= 2 && base <= 10) { cout<<" "<< number <<"(base 10) = "; displayInBase(number, base); cout<<"(base "<< base <<")"<<endl; } else { cout<<"The base shoud be [2,10]"<<endl; } return 0; }