Monday, October 7, 2013

Decision Structures for Algorithms




IS Structure
Is (True) Then
    Begin
        Zero or more Statements
    End

IS ELSE Structure
Is (True) Then
    Begin
        Zero or more Statements
    End
Else
    Begin
        Zero or more Statements
      End

IS ELSE-IF ELSE Structure
Is (True) Then
   Begin
          Zero or more Statements
   End
 Else if (True) Then
    Begin
          Zero or more Statements
     End
  Else
        Begin
        Zero or more Statements
             End

No comments:

Post a Comment