New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add examples to description #134
Add examples to description #134
Conversation
@@ -13,6 +13,9 @@ theory: | | |||
Самое главное начинается после двоеточия: «значение "10" не равно ожидаемому значению "35"». То есть правильная функция должна была выдать 35, но текущее решение работает неправильно и выдаёт 10. | |||
instructions: | | |||
Выведите на экран `420262531`. | |||
<pre class='hexlet-basics-output'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Лучше, конечно, отделять блоки пустыми строками.
@@ -54,6 +54,7 @@ theory: | | |||
instructions: | | |||
|
|||
Выведите на экран результат деления числа `81` на `9`. В этот раз используйте для вывода `println`. | |||
<pre class='hexlet-basics-output'>9</pre> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь показывать вывод точно не нужно.
@@ -35,6 +35,8 @@ theory: | | |||
instructions: | | |||
|
|||
Напишите программу, которая посчитает разность между `6` и `-81` и выведет ответ на экран. | |||
<pre class='hexlet-basics-output'>87</pre> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И здесь тоже блок с выводом лишним будет.
@@ -13,6 +13,10 @@ theory: | | |||
instructions: | | |||
|
|||
Напишите программу, которая считает и последовательно выводит на экран значения следующих математических выражений: «3 умножить на 5» и «-8 разделить на -4». | |||
<pre class='hexlet-basics-output'> | |||
15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И здесь.
@@ -19,10 +19,12 @@ theory: | | |||
instructions: | | |||
|
|||
Реализуйте программу, которая вычисляет значение выражения `8 / 2 + 5 - -3 / 2`. Не вычисляйте ничего самостоятельно, ваша программа должна производить все вычисления сама. | |||
|
|||
<pre class='hexlet-basics-output'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь тоже :)
|
||
tips: | ||
- | | ||
[История перевода строки](https://ru.wikipedia.org/wiki/Перевод_строки#История) | ||
|
||
# definitions: | ||
# - name: "Экранирующая последовательность" | ||
# description: "специальная комбинация символов в тексте. Например, _\\n_ — это перевод строки." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это, кстати, комментарий. Т.е. он не будет выводиться на сайте.
|
||
Целые числа (`1`, `34`, `-19` и т.д.) и рациональные числа (`1.3`, `1.0`, `-14.324` и т.д.) — это два отдельных **типа данных**. Такое разделение связано с особенностями устройства компьютеров. **Есть и другие типы**, с ними мы познакомимся позже. | ||
|
||
Вот еще один пример, но уже с рациональным числом: | ||
|
||
```java | ||
System.out.println(10.234); | ||
System.out.println(10.234); //=> 10.234 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добавь, плиз, пробел после //
@@ -67,6 +67,10 @@ theory: | | |||
|
|||
instructions: | | |||
Выведите на экран число `-0.304`. | |||
<pre class='hexlet-basics-output'> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
@@ -6,7 +6,7 @@ theory: | | |||
Язык Java является языком со строгой типизацией. Используя специальный синтаксис, возможно осуществить преобразование типов: | |||
|
|||
```java | |||
System.out.println(Integer.parseInt("345")); | |||
System.out.println(Integer.parseInt("345")); //=> 345 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вот здесь тоже // =>
(с пробелом)
@@ -15,16 +15,17 @@ theory: | | |||
|
|||
```java | |||
// Дополнительные скобки помогают визуально отделить части выражения друг от друга. | |||
System.out.println("Это " + ((int) 5.1)); | |||
System.out.println("Это " + ((int) 5.1));//=> Это 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
И здесь
Нужен ребейз, тут конфликты |
2d68a76
to
f534b67
Compare
f534b67
to
85cac08
Compare
Add examples
Correct mistakes