<ELSE IF Example Program>

Program elseif_example
  Integer :: x
  Read *, x
  If (x>2) Then
    Print *, 'big plus'
  Else If (x<-2) Then
    Print *, 'big minus'
  End If
End Program

<Example input 1>

3

■ Execution Results

 big plus

<Example input 2>

-4

■ Execution Results

 big minus