Skip to content

Проектная работа №1 - #1

Open
VeronikaZueva wants to merge 10 commits into
mainfrom
dev
Open

VeronikaZueva wants to merge 10 commits into
mainfrom
dev

Conversation

@VeronikaZueva

@VeronikaZueva VeronikaZueva commented Sep 27, 2023 •

Copy link
Copy Markdown
Owner

Во время работы пробовала, как создавать Коммиты. Финальная версия - это последний commit - Final Version

Comment thread src/main/java/Ruble.java Outdated

public String recieveRuble(double rublePrice) {
int resultPrice = (int)Math.floor(rublePrice);
String ruble;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Можно обойтись и без этой переменной и сразу возвращать строку
image

Comment thread src/main/java/Main.java
while (true) {
if(scanner.hasNextDouble()) {
double price = scanner.nextDouble();
if(price <= 0) {System.out.println("Укажите число больше 0.");}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

if if else 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