Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
dop_urok_1
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
Нұрасыл Қайратұлы
dop_urok_1
Commits
dc453e5c
Commit
dc453e5c
authored
Aug 09, 2024
by
Нұрасыл Қайратұлы
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Сделал валидацию и закончил таск 5
parent
79531a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
task_5.html
task_5.html
+17
-9
No files found.
task_5.html
View file @
dc453e5c
...
@@ -10,18 +10,26 @@
...
@@ -10,18 +10,26 @@
const
userAnswer
=
prompt
(
'Введите символ'
)
const
userAnswer
=
prompt
(
'Введите символ'
)
let
result
=
''
if
(
userAnswer
!==
null
&&
userAnswer
!==
''
)
{
if
(
userAnswer
.
length
>
1
)
{
alert
(
'нужно ввести один символ'
)
}
else
{
let
result
=
''
for
(
let
i
=
0
;
i
<
7
;
i
++
)
{
for
(
let
i
=
0
;
i
<
7
;
i
++
)
{
for
(
let
j
=
0
;
j
<
20
;
j
++
)
{
for
(
let
j
=
0
;
j
<
20
;
j
++
)
{
result
+=
userAnswer
result
+=
userAnswer
}
}
result
+=
'
\
n'
result
+=
'
\
n'
}
}
alert
(
result
)
alert
(
result
)
}
}
else
{
alert
(
'Нужно ввести символ'
)
}
</script>
</script>
</body>
</body>
...
...
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