Computer Science, asked by pinakimandal53, 1 year ago

What is the use of END IF statement in QB64? This is NOT for assignment help. This is my doubt. Please help me.

Answers

Answered by Abrar11
5
In either QBASIC or any other programs like c, c++ where there is IF statement is used there must be closing statement of IF which we called as END IF is used after the else part condition terminate.
It is the rule of programming language .
Hope u got my points..

pinakimandal53: Is this statement used for closing the IF statements?
pinakimandal53: We use this statement to end or close the IF statements?
Abrar11: yes
pinakimandal53: Suppose, after writing "END IF", in the next lline, I wrote something using IF-THEN-ELSE statement. The statement written after END IF will also be executed?
Abrar11: no it will not executed as END IF means end of IF ELSE statement so if u want to add any further statement of IF ELSE u must put before ENF IF
Answered by djakjkj
0

IT IS USED TO INDICATE THE END OF A PROGRAM.ANY STATEMENT WRITTEN AFTER END DOESN'T FOLLOWED BY COMPUTER

Similar questions