CHE110-L14 - Do While Loops CHE110 Introduction to...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Department of Chemical Engineering Do While Loops CHE110 Introduction to Programming & Problem Solving
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Department of Chemical Engineering Introduction to Loops A Loop is a construct that consists of code that is repeatedly executed . Examples where loops would be useful. x x o x 1 x 2 x 3 Iterative Procedures ( ) 2 i i f 1 x t x v t at 2 t 0, t, 2 t t = + + = Δ Δ Spatial/Temporal Profiles ( ) n 2 j j j 1 x y x = Δ Summations ( ) x 2 0 x y dx For loops Do While loops
Image of page 2