Presentation is loading. Please wait.

Presentation is loading. Please wait.

ITEC 109 Lecture 11 While loops. 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?

Similar presentations


Presentation on theme: "ITEC 109 Lecture 11 While loops. 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?"— Presentation transcript:

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


Download ppt "ITEC 109 Lecture 11 While loops. 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?"

Similar presentations


Ads by Google