. .
.
Writing if-then-else Code in MIP
.
.

Introduction

 

The following are the different kinds of Control-Abstractions provided by almost all high-level languages.

 

 

  1. goto statements.
     
  2. if-then-else statements
     
  3. Loop Constructs - do-while, for loops etc.

 

 

All though any one of these Control Statements are sufficient to compute any function, a control statement in one form could be more appropriate in a particular situation than the others. For example, we could prefer a for-loop over a while-loop while iterating over array elements.

Cite this Simulator:

.....
..... .....
Copyright @ 2017 Under the NME ICT initiative of MHRD (Licensing Terms)
 Powered by AmritaVirtual Lab Collaborative Platform [ Ver 00.11. ]