-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-1.html
More file actions
88 lines (79 loc) · 2.01 KB
/
index-1.html
File metadata and controls
88 lines (79 loc) · 2.01 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!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="Operators & Expressions">
<title>Coding Assisement</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<h2>1. Operators & Expressions</h2>
<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) => {
return (a<10 && a>b);
};
</pre>
<p>Que.3 Check the conditons</p>
<pre>
const Check = (A, B) =>
{
return !(A % 10 !== 0 && B % 10 !== 0);
// or
// return (A % 10 !== 0 || B % 10 !== 0);
};
</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);
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>
<div class="container">
<div class="row"><a href="./index.html">Back</a></div>
<div class="row"><a href="./index-2.html">Next</a></div>
</div>
</body>
</html>