-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathLoop Example
62 lines (49 loc) · 1.05 KB
/
Loop Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import java.util.Scanner;
class LoopsExample
{
// while loop, Do-while loop, For loop
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
// while loop example
while(n<=10)
{
System.out.print(n+" ");
n++;
}
//do while loop example
System.out.println("Do while answer");
do{
System.out.println(n);
}while(n<=10);
//for loop
for(int i = 1; i <=10; )
{
System.out.print(i + " ");
i++;
}
#This is HTML Code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Book Flip Effect</title>
</head>
<body>
<div class="book_wrapper">
<a id="next_page_button"></a>
<a id="prev_page_button"></a>
<div id="mybook" style="display:none">
<img src="D:\Images\download\2878927.jpg" all="">
<h1>SLIDER GALLERY</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
</p>
<a href="" class="article">article</a>
</div>
</div>
</body>
</html>
}
}