Skip to content

PR for check#117

Open
SergeyNoskov2022 wants to merge 4 commits into
Yandex-Practicum:masterfrom
SergeyNoskov2022:master
Open

PR for check#117
SergeyNoskov2022 wants to merge 4 commits into
Yandex-Practicum:masterfrom
SergeyNoskov2022:master

Conversation

@SergeyNoskov2022
Copy link
Copy Markdown

No description provided.

Comment thread src/main/java/Calculate.java Outdated
}
public void sumProducts() {
while (true) {
System.out.println("Введите название товара:");

This comment was marked as resolved.

Comment thread src/main/java/Calculate.java Outdated
}

public void divTotalPrice() {
int lastNum = (int) totalPrice % 10;

This comment was marked as resolved.

Comment thread src/main/java/Calculate.java Outdated
rub = "рублей";
} else if (lastNum > 1 && lastNum < 5) {
rub = "рубля";
} else if (totalPrice % 10 == 1) {

This comment was marked as resolved.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Спасибо за критику! Исправил, прошу проверить.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants