Skip to content
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

Merged
merged 5 commits into from Oct 28, 2020

Conversation

TanyFV
Copy link
Contributor

@TanyFV TanyFV commented Oct 20, 2020

Add examples
Correct mistakes

@@ -13,6 +13,9 @@ theory: |
Самое главное начинается после двоеточия: «значение "10" не равно ожидаемому значению "35"». То есть правильная функция должна была выдать 35, но текущее решение работает неправильно и выдаёт 10.
instructions: |
Выведите на экран `420262531`.
<pre class='hexlet-basics-output'>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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
Copy link
Contributor

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'>
Copy link
Contributor

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_ — это перевод строки."
Copy link
Contributor

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
Copy link
Contributor

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'>
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И здесь

@mokevnin
Copy link
Contributor

Нужен ребейз, тут конфликты

@TanyFV TanyFV force-pushed the add-examples-to-description branch from 2d68a76 to f534b67 Compare October 28, 2020 12:46
@TanyFV TanyFV force-pushed the add-examples-to-description branch from f534b67 to 85cac08 Compare October 28, 2020 13:08
@zhabinka zhabinka merged commit 25322c7 into hexlet-basics:master Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants