-
Notifications
You must be signed in to change notification settings - Fork 0
/
for.html
50 lines (44 loc) · 1.35 KB
/
for.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>For loop - Learn V#</title>
</head>
<body>
<header>
<h1>For loopin V#</h1>
</header>
<div class="container">
<!-- Side navigation -->
<nav>
<a href="learn.html">Home</a>
<a href="variables.html">Variables</a>
<a href="io.html">Input/Output</a>
<a href="conditionals.html">Conditionals</a>
<a href="objects.html">Objects</a>
<a href="functions.html">Functions</a>
<a href="imports.html">Imports</a>
<a href="array-list.html">Arrays/Lists</a>
<a href="for.html">For loop</a>
<a href="while.html">While loop</a>
</nav>
<!-- Main content -->
<div class="content">
<section id="for-loop">
<h2>For loop</h2>
<pre><code>
set x = [5,6,3,5,7,2]
for(item in x){
io.println(item) // prints any item in x array
}
</code></pre>
</section>
<footer>
<p>© 2024 Learn V# Documentation. All rights reserved.</p>
</footer>
</div>
</div>
</body>
</html>