How to put if statement and Int on this problem

Printable View