Update main.cpp

ideal for numbers between 1 and 100 :)