Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pull Request к заданию Пишем консольное приложение#1

Open
KasterTest wants to merge 4 commits intomain from
master
Open

Pull Request к заданию Пишем консольное приложение #1
KasterTest wants to merge 4 commits intomain from
master

Conversation

@KasterTest
Copy link
Owner

@KasterTest KasterTest commented Aug 15, 2022

Первая попытка сдачи работы "Пишем консольное приложение" - Позябин Юрий

break; // Выходим из бесконечного цикла
} else if (inputMan == 1) { // Если пользователь вводит 1
System.out.println("Программа производит расчеты при количестве человек от 2-х и больше, попробуйте еще раз.");
} else if (inputMan < 0) { // Еслм пользователь вводит число меньше 1
Copy link

@MagicUnderHood MagicUnderHood Aug 15, 2022

Choose a reason for hiding this comment

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

Не обработан вариант, если пользователь введет 0 - в таком случае программа не продолжает работать. Тут лучше поменять условие на <=, либо просто поставить else без условия.

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

Reviewers

1 more reviewer

@MagicUnderHood MagicUnderHood MagicUnderHood left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /