Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Задача 2</title>
- <meta charset="utf-8">
- <script type="text/javascript">
- var first = prompt('Введите первое число');
- var second = prompt('Введите второе число');
- var min = function (){
- if (first < second){
- console.log('минимальное число - ',first)
- } else if (first == second){
- console.log('Числа равны')
- } else {
- console.log('минимальное число - ',second);
- }
- }
- min();
- </script>
- </head>
- <body>
- </body>
- </html>
Add Comment
Please, Sign In to add comment