You are on page 1of 20

Click to edit Master title style

Iterators
[ LOOPS ]
M.A. ESPIRITU

SOURCE: SMARTHERD

1
Click to edit Master title style

Introduction
I T E R ATO R S : L O O P S

2 2
OUTPUT
Click to edit Master title style

Hello
Hello
Hello
Hello
3 3
LOOPS
Click to edit Master title style

OUTPUT

Hello
Hello
Hello
Hello
4 4
Click to edit Master title style
FOR LOOP: How it works?

5 5
Click to edit Master title style
FOR LOOP: How it works?

6 6
SAMPLE PROGRAM
Click to edit Master title style

7 7
SAMPLE PROGRAM
Click to edit Master title style

8 8
Click to edit Master title style
WHILE LOOP: How it works?

9 9
Click to edit Master title style
WHILE LOOP: How it works?

10
10
SAMPLE PROGRAM
Click to edit Master title style

11
11
Click to edit Master title style
DO WHILE LOOP: How it works?

12
12
Click to edit Master title style
DO WHILE LOOP: How it works?

13
13
SAMPLE PROGRAM
Click to edit Master title style

14
14
Click to edit Master title style

Java BREAK Statement


It is used to break the LOOP or
SWITCH CASE statement

15
15
Java
Click to BREAK Statement
edit Master title style

16
16
SAMPLE PROGRAM
Click to edit Master title style

17
17
Click to edit Master title style

Java CONTINUE Statement


It is used to skip some code
within the LOOP

18
18
Java
Click to CONTINUE Statement
edit Master title style

19
19
Click to edit Master title style

THANK YOU

20
20

You might also like