Skip to content

Add files via upload #4

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add files via upload #4

wants to merge 1 commit into from

Conversation

codebasecodebase
Copy link
Owner

No description provided.

summ2 = digit1 + digit3;
summ3 = digit2 + digit3;

if(digit1 < summ && digit1 < summ2 && digit1 < summ3 && digit2 < summ && digit2 < summ2 && digit2 < summ3 && digit3 < summ && digit3 < summ2 && digit3 < summ3) {

Choose a reason for hiding this comment

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

Избыточное условие. Нужно проверить, чтобы сумма двух сторон была не меньше третьей, а не каждой из трех

var digit1 = Number(prompt('Введите первое число')),
digit2 = Number(prompt('Введите второе число'));

if( digit1 % digit2 == 0) {

Choose a reason for hiding this comment

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

Используйте строгое сравнение


d3 = digit1 / 1073741824;

alert(digit1 + "Байт");

Choose a reason for hiding this comment

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

Нужно было вывести только одну единицу - самую подходяющую для значения


var year = Number(prompt('Введите год'));

if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0){

Choose a reason for hiding this comment

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

Используйте строгие сравнения и отрицания

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