This preview shows pages 1–6. Sign up to view the full content.
Department ofChemical EngineeringDo While LoopsCHE110Introduction to Programming& Problem Solving
has intentionally blurred sections.
Sign up to view the full version.
Department ofChemical EngineeringIntroduction to Loops•A Loopis a construct that consists of code that is repeatedly executed.•Examples where loops would be useful.xxox1x2x3Iterative Procedures( )2iif1x txv tat2t0, t, 2 t t=++=ΔΔ…Spatial/Temporal Profiles()n2jjj 1xyx=−Δ∑Summations()x20xydx−∫ForloopsDo Whileloops