-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgithub.html
More file actions
67 lines (47 loc) · 1.21 KB
/
github.html
File metadata and controls
67 lines (47 loc) · 1.21 KB
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
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub</title>
</head>
<body>
<script>
// For Loop
/* var i;
for(i=0; i<10; i=i+1){
if(i==5){
break;
}
document.write(i+"<button>Submit</button> <br>")
} */
// While Loop
var i = 0;
while (i < 10) {
document.write(i + "<button>While Loop</button> <br>")
i = i + 1
}
// grading system
var marks = 64;
if (marks >= 80 && marks <= 100) {
document.write('A+')
}
else if (marks < 80 && marks >= 70) {
document.write('A')
}
else if (marks < 70 && marks >= 60) {
document.write('A-')
}
else if (marks < 60 && marks >= 50) {
document.write('B')
}
else if (marks < 50 && marks >= 40) {
document.write('C')
}
else if (marks < 40 && marks >= 33) {
document.write('D')
}
else { document.write('F') }
</script>
</body>
</html>