Download presentation
Presentation is loading. Please wait.
Published byEustacia Gibson Modified over 9 years ago
1
ITEC 109 Lecture 11 While loops
2
while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself? Homework ?s –iterate + if / else if
3
while loops Objectives Exam on Tuesday –True / False –Short Answer –Write a simple program –Tell me what a program does Learn the last intro concept –While loops
4
while loops Problem Need to repeat statement(s) Don’t know the # until program runs
5
while loops Solution Use boolean variables or operations while (boolean) do X statements go = true; while (go): Statements Some statement that sets go to be false
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.