Sunday 28 July 2013

System Design using Loop Statements (Behavior Modeling Style)






System Design using LOOP Statements (Behavior Modeling Style) -



Loops Statemetns (Behavior Modeling Style) -


  • FOR Loop.
  • WHILE Loop.
  • FOREVER Loop.
  • REPEAT Loop.



FOR Loop Syntax -


for     ( initilization    ;     condition    ;    increment  ) begin
         
          Sequential Statements   ;

end




While Loops Syntax -


while    (condition)     begin
 
          Sequential Statements    ;

end




Forever Loop    Syntax -


forever     begin

       Sequential Statements    ;

end





Repeat Loop    Syntax -


repeat     (numbers)   begin

         Sequential Statements   ;

end




Sample Programs for Loops Statements -





0 comments :

Post a Comment

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes