-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
@TelenkovAleksey
TelenkovAleksey
left a comment
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.
Внес изменения
@TelenkovAleksey
TelenkovAleksey
left a comment
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.
Внес изменения.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
Здесь выводится стоимость товара - price, но расчет окончания слова Рубль берется для числа itog, а должна быть одна и та же переменная
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.
Наставница передала твой вопрос, что я имела в виду:
У тебя строка:
System.out.println("Вы успешно добавили продукт:" + food + "\nИтог: " + String.format("%.2f", price) + " " + Matsh.floover(itog));
А должно быть:
System.out.println("Вы успешно добавили продукт:" + food + "\nИтог: " + String.format("%.2f", price) + " " + Matsh.floover(price));
То есть просто ты тут выводишь число в виде переменной price, но в метод, выдающий окончание слова рубль передаешь другую переменную, itog. Из-за этого при выводе стоимости продукта окончание не то получалось
No description provided.