-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Homego #6
base: home
Are you sure you want to change the base?
Conversation
added new branch.
Revert "added new branch."
Create HW
Revert "Create HW"
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.
Оцениваю ДЗ2: отлично (есть комментарий на доработку по желанию)
ДЗ3 - пока нет
|
||
} |
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.
предыдущих ДЗ в ДЗ3 не должно быть
fmt.Println("Ошибка !!", err.Error()) | ||
os.Exit(1) | ||
} | ||
if len(numbers) == 3 { |
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.
хороший вариант, но попробуйте через число сделать :)
fmt.Println("Десятки: ", string(numbers[1])) | ||
fmt.Println("Еденицы: ", string(numbers[2])) | ||
} else { | ||
fmt.Println("Ошибка!!! Введите трехзначное число") |
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.
эту ошибку лучше обработать выше
add homework