Visitar URL original
perfect number by shellhub · Pull Request #1016 · TheAlgorithms/Java · GitHub
The Wayback Machine - https://web.archive.org/web/20201103185153/https://github.com/TheAlgorithms/Java/pull/1016
Skip to content
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

perfect number #1016

Merged
merged 1 commit into from Oct 11, 2019
Merged

perfect number #1016

merged 1 commit into from Oct 11, 2019

Conversation

@shellhub
Copy link
Member

@shellhub shellhub commented Oct 11, 2019

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*/

This comment has been minimized.

@yanglbme

yanglbme Oct 11, 2019
Member

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

This comment has been minimized.

@shellhub

shellhub Oct 11, 2019
Author Member

Thanks! Changed @yanglbme

@shellhub shellhub force-pushed the shellhub:feature-1 branch from 826f764 to 58b9f0b Oct 11, 2019
@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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.