if-statement exercise

Please leave a comment if you would change something in the description of the problem.