Create 8.cpp

Works for 4 digits only