I'm new to COBOL and want to write a nested if statement. I'm getting errors on the ELSE-IF and ELSE. I'm sure it's a simple fix, but I can't figure out where I'm going wrong.
reading-procedure.
display "Enter Type of Pet: " with no advancing.
accept pet.
display "Enter Appointment Fee: " with no advancing.
accept fee.
IF pet = 'dog'
add fee total giving dogTotal.
add 1 to dogCount.
ELSE-IF pet = 'cat'
add fee total giving catTotal.
add 1 to catCount.
ELSE
add fee total giving otherTotal.
add 1 to otherCount.
END-IF