Update Question3.cpp

Fixed program to accomadate 0