-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-15.html
105 lines (92 loc) · 2.68 KB
/
index-15.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="Assignment">
<title>Coding Assisement</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h2>15. jQuery </h2>
<!-- ====== write code -->
<!--
<div class="Que">
<p>Que.1 Add two Numbers</p>
<pre>
const AddTwoNumbers = (a,b) => {
return a+b;
};
</pre>
<p>Que.2 Find if the conditions are obeyed or not?</p>
<pre>
const Is_Valid = (a,b) => {
if(a<10 && a>b){
return true;
}
else{
return false;
}
};
</pre>
<p>Que.3 Check the conditons</p>
<pre>
const Check = (A, B) =>
{
if (A % 10 === 0 && B % 10 === 0) {
return true;
} else if (A % 10 !== 0 && B % 10 !== 0) {
return false;
} else {
return true;
}
};
</pre>
<p>Que.4 Find the first digit of a 4 digit number</p>
<pre>
const First_Digit = (n) => {
let num = Math.floor(n / 1000);
return num;
};
</pre>
<p>Que.5 Find the last digit of a 4 digit number</p>
<pre>
const Last_Digit = (n) => {
let num = Math.floor(n % 10);
// Isolate the first digit using integer division
return num;
};
</pre>
<p>Que.6 Find the remainder</p>
<pre>
const Find_the_remainder = (a,b) => {
let num = b%a;
return num;
};
</pre>
<p>Que.7 Multipy two Numbers</p>
<pre>
const Multiply_two_number = (a,b) => {
return a*b;
};
</pre>
<p>Que.8 Marks Calculator</p>
<pre>
const Sum = (A, B, C) =>
{
return A+B+C;
};
const Average = (A, B, C) =>
{
return (A+B+C)/3;
};
</pre>
</div>
-->
<h1 style="margin-top: 200px;">coming soon...</h1>
<div class="container">
<div class="row"><a href="./index-14.html">Back</a></div>
<div class="row"><a href="./index-16.html">Next</a></div>
</div>
</body>6</html>