title: Why do we use "End If" statement?
body: <p>Why do we write <code>END IF</code> statement in this program? Without writing it, we can easily get our result. Is there any example through which you can explain me the use of <code>END IF</code> statement?</p>
  
  <p>I have tried this:</p>
  
  <pre><code>INPUT X
  IF X&gt;10 THEN PRINT "X IS GREATER THAN 10" ELSE PRINT "X IS NOT GREATER THAN 10"
  END
  </code></pre>
  
  <p>then I am also getting expected result.</p>
  
  <p>The real code is:</p>
  
  <pre><code>INPUT X
  IF X&gt;10 THEN 
      PRINT "X IS GREATER THAN 10"
  ELSE
      PRINT "X IS NOT GREATER THAN 10"
  END IF
  END
  </code></pre>
  
  <blockquote>
    <p>EXPECTED AND DESIRED<br>
    FOR EXAMPLE:<br>
    When <code>X=5</code> Then Output will be "X IS NOT GREATER THAN <code>10</code>".</p>
  </blockquote>