if logical exercise

this program makes comparisons