removed \n from print
if else statement example