COBOL Simple If Statement Examples

 
 
If AGE >= 18
      DISPLAY “Able to Vote”.
 
If SCORE = 100
      DISPLAY “Perfect Score”
      GRADE = "A+".
 
If AGE < 21
      DISPLAY “underage”.