X Tutup
Skip to content

perfect number#1016

Merged
yanglbme merged 1 commit intoTheAlgorithms:masterfrom
realDuYuanChao:feature-1
Oct 11, 2019
Merged

perfect number#1016
yanglbme merged 1 commit intoTheAlgorithms:masterfrom
realDuYuanChao:feature-1

Conversation

@realDuYuanChao
Copy link
Copy Markdown
Member

No description provided.

public class PerfectNumber {
public static void main(String[] args) {
assert isPerfectNumber(6); /* 1 + 2 + 3 == 6*/
assert !isPerfectNumber(8); /* 1 + 2 + 4 != 7*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
assert !isPerfectNumber(8); /* 1 + 2 + 4 != 7*/
assert !isPerfectNumber(8); /* 1 + 2 + 4 != 8*/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks! Changed @yanglbme

@yanglbme yanglbme merged commit f6ca5e3 into TheAlgorithms:master Oct 11, 2019
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

X Tutup