Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vebinar_11
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Нұрасыл Қайратұлы
vebinar_11
Commits
f3587919
Commit
f3587919
authored
Dec 06, 2023
by
Nurasyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b6f75697
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
22 deletions
+20
-22
index.js
JS/index.js
+20
-22
No files found.
JS/index.js
View file @
f3587919
...
@@ -18,28 +18,26 @@ function showResult(arr) {
...
@@ -18,28 +18,26 @@ function showResult(arr) {
};
};
function
counterGroup
(
arr
,
num
)
{
function
counterGroup
(
arr
,
num
)
{
for
(
let
i
=
0
;
i
<
num
;
i
++
)
{
if
(
num
>=
0
&&
num
<=
9
)
{
if
(
num
>=
0
&&
num
<=
9
)
{
arr
[
0
]
++
;
arr
[
0
]
++
;
}
else
if
(
num
>=
10
&&
num
<=
19
)
{
}
else
if
(
num
>=
10
&&
num
<=
19
)
{
arr
[
1
]
++
;
arr
[
1
]
++
;
}
else
if
(
num
>=
20
&&
num
<=
29
)
{
}
else
if
(
num
>=
20
&&
num
<=
29
)
{
arr
[
2
]
++
;
arr
[
2
]
++
;
}
else
if
(
num
>=
30
&&
num
<=
39
)
{
}
else
if
(
num
>=
30
&&
num
<=
39
)
{
arr
[
3
]
++
;
arr
[
3
]
++
;
}
else
if
(
num
>=
40
&&
num
<=
49
)
{
}
else
if
(
num
>=
40
&&
num
<=
49
)
{
arr
[
4
]
++
;
arr
[
4
]
++
;
}
else
if
(
num
>=
50
&&
num
<=
59
)
{
}
else
if
(
num
>=
50
&&
num
<=
59
)
{
arr
[
5
]
++
;
arr
[
5
]
++
;
}
else
if
(
num
>=
60
&&
num
<=
69
)
{
}
else
if
(
num
>=
60
&&
num
<=
69
)
{
arr
[
6
]
++
;
arr
[
6
]
++
;
}
else
if
(
num
>=
70
&&
num
<=
79
)
{
}
else
if
(
num
>=
70
&&
num
<=
79
)
{
arr
[
7
]
++
;
arr
[
7
]
++
;
}
else
if
(
num
>=
80
&&
num
<=
89
)
{
}
else
if
(
num
>=
80
&&
num
<=
89
)
{
arr
[
8
]
++
;
arr
[
8
]
++
;
}
else
if
(
num
>=
90
&&
num
<=
99
)
{
}
else
if
(
num
>=
90
&&
num
<=
99
)
{
arr
[
9
]
++
;
arr
[
9
]
++
;
};
};
};
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment