Skip to content

Проектная работа №1. Калькулятор счёта - #1

Open
TanyaRul wants to merge 3 commits into
mainfrom
master
Open

TanyaRul wants to merge 3 commits into
mainfrom
master

Conversation

@TanyaRul

Copy link
Copy Markdown
Owner

No description provided.

System.out.println(String.format("Каждый гость должен заплатить %.2f", amountPerGuest) + " рубль");
}
else {
System.out.println(String.format("Каждый гость должен заплатить %.2f", amountPerGuest) + " рублей");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Код System.out.println(String.format("Каждый гость должен заплатить %.2f", amountPerGuest) + " рублей"); повторяется в каждой ветке, кроме слова рубль, лучше код вынести после if-else, оставив в нем только определение слова

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