for (int i = 0; i < 10; i ) { - PowerPoint PPT Presentation

1 / 90
About This Presentation
Title:

for (int i = 0; i < 10; i ) {

Description:

{ System.out.print(' '); System.out.println(); for (int i = 0; i 10; i ) ... { System.out.print(' '); System.out.println(); i has a value of 0 (and is 10) ... – PowerPoint PPT presentation

Number of Views:14
Avg rating:3.0/5.0
Slides: 91
Provided by: adrian94
Category:
Tags: int | print

less

Transcript and Presenter's Notes

Title: for (int i = 0; i < 10; i ) {


1
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
2
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
3
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
4
i has a value of 0 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
5
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
6
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 0
7
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 0 (and is lt 10)
8
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 0
9
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 0
10
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 0
oh, yes!
11
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 0
oh, yes!
0
12
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 1
oh, yes!
0
13
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 1 (and is lt 10)
oh, yes!
0
14
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 1 (and is lt 10)
oh, yes!
0
15
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 1
yes (but only because of i 0)
0
16
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 1
yes (but only because of i 0)
0 0
17
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 2
yes (but only because of i 0)
0 0
18
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 2 (and is lt 10)
yes (but only because of i 0)
0 0
19
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 2 (and is lt 10)
oh, yes!
0 0
20
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 2
yes (but only because of i 0)
0 0
21
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 2
yes (but only because of i 0)
0 0 0
22
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 3
yes (but only because of i 0)
0 0 0
23
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 3 (and is lt 10)
yes (but only because of i 0)
0 0 0
24
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 3 (and is lt 10)
oh, yes!
0 0 0
25
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 3
yes (but only because of i 0)
0 0 0
26
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 3
yes (but only because of i 0)
0 0 0 0
27
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 4
yes (but only because of i 0)
0 0 0 0
28
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 4 (and is lt 10)
yes (but only because of i 0)
0 0 0 0
29
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 4 (and is lt 10)
oh, yes!
0 0 0 0
30
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 4
yes (but only because of i 0)
0 0 0 0
31
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 4
yes (but only because of i 0)
0 0 0 0 0
32
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 5
yes (but only because of i 0)
0 0 0 0 0
33
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 5 (and is lt 10)
yes (but only because of i 0)
0 0 0 0 0
34
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 5 (and is lt 10)
oh, yes!
0 0 0 0 0
35
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 5 (and is lt 10)
yes (but only because of i 0)
0 0 0 0 0
36
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 5
yes (but only because of i 0)
0 0 0 0 0 0
37
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 6
yes (but only because of i 0)
0 0 0 0 0 0
38
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 6 (and is lt 10)
yes (but only because of i 0)
0 0 0 0 0 0
39
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 6 (and is lt 10)
oh, yes!
0 0 0 0 0 0
40
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 6
yes (but only because of i 0)
0 0 0 0 0 0
41
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 6
yes (but only because of i 0)
0 0 0 0 0 0 0
42
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 7
yes (but only because of i 0)
0 0 0 0 0 0 0
43
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 7 (and is lt 10)
yes (but only because of i 0)
0 0 0 0 0 0 0
44
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 7 (and is lt 10)
oh, yes!
0 0 0 0 0 0 0
45
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 7
yes (but only because of i 0)
0 0 0 0 0 0 0
46
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 7
yes (but only because of i 0)
0 0 0 0 0 0 0 0
47
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 8
yes (but only because of i 0)
0 0 0 0 0 0 0 0
48
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 8 (and is lt 10)
yes (but only because of i 0)
0 0 0 0 0 0 0 0
49
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 8 (and is lt 10)
oh, yes!
0 0 0 0 0 0 0 0
50
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 8
yes (but only because of i 0)
0 0 0 0 0 0 0 0
51
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 8
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0
52
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 9
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0
53
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 9 (and is lt 10)
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0
54
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 9 (and is lt 10)
oh, yes!
0 0 0 0 0 0 0 0 0
55
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 9
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0
56
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 9
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0
57
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0
58
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10 (not lt 10)
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0
59
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0
60
i has a value of 0
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 _
61
i has a value of 1
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 _
62
i has a value of 1 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 _
63
i has a value of 1 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 _
64
i has a value of 1
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 _ _ _ _ _ _ _ _
65
i has a value of 1
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 _ _ _ _ _ _ _ _
66
i has a value of 1
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 _ _ _ _ _ _ _ _ _
67
i has a value of 2
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 _
68
i has a value of 2 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 _
69
i has a value of 2
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 _
70
i has a value of 2
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 _ 2 _ _ _ _ _ _ _
71
i has a value of 2
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 _ 2 _ _ _ _ _ _ _

72
i has a value of 2
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 _ 2 _ _ _ _ _ _ _ _
73
i has a value of 3
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 _
74
i has a value of 3 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 _
75
i has a value of 3
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2
_
76
i has a value of 3
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 _ _ 3 _ _ _ _
_ _
77
i has a value of 3
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 _ _ 3 _ _ _ _
_ _
78
i has a value of 3
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 _ _ 3 _ _ _ _
_ _ _
79
i has a value of 4
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
_
80
i has a value of 4 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _
81
i has a value of 4
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ _
82
i has a value of 5
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ _
83
i has a value of 5 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ _
84
i has a value of 5 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
_
85
i has a value of 6 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
6 6 _
86
i has a value of 7 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
6 6 7 7 _
87
i has a value of 8 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
6 6 7 7 8
8 _
88
i has a value of 9 (and is lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
6 6 7 7 8
8 9 9 _
89
i has a value of 10 (not lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
6 6 7 7 8
8 9 9 _
90
i has a value of 10 (not lt 10)
for (int i 0 i lt 10 i) for (int j 0
j lt 10 j) if (i 0 j 0 i j)
System.out.print( i) else
System.out.print( )
System.out.println()
j has a value of 10
yes (but only because of i 0)
0 0 0 0 0 0 0 0 0 0 1 1 2 2 3 3
4 _ _ _ 4 _ _ _ _ _ 5 5
6 6 7 7 8
8 9 9 _
so were done!
Write a Comment
User Comments (0)
About PowerShow.com