Comment :

method used :

Enter a number between 1 and 3