Skip to content

Luzhbin#26

Open
greensmile95 wants to merge 5 commits into
masterfrom
Luzhbin
Open

Luzhbin#26
greensmile95 wants to merge 5 commits into
masterfrom
Luzhbin

Conversation

@greensmile95
Copy link
Copy Markdown
Collaborator

tak?

Comment thread .gitignore
*.exe
*.out
*.app
Students/Luzhbin.DO/prac1/desktop.ini
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Лишнее.

for (int i = 1; i < 101; i++)
{
long n = i;
if ((n % 3 != 0) & (n % 5 != 0)) { cout << (i) << endl; }
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

& - побитовое "И", вам нужно логическое.
Зачем скобочки вокруг i?

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