-
Notifications
You must be signed in to change notification settings - Fork 1
OddNumberSeries.java #1
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
base: master
Are you sure you want to change the base?
Conversation
class DivisorSeries | ||
{ | ||
public static void main (String args[]) | ||
class Test |
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.
Rename class to DivisorSeries.
System.out.print(i+"/"+(i*i)); | ||
} | ||
} | ||
for (int i=1;i<=n;i++) |
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.
The program I created has approach for basic users, You can keep it in two forms.
One for advanced users and mine for newbies.
{ | ||
System.out.println("The divisors of 100 are: "); | ||
printDivisors(100);; | ||
} |
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.
Good Program, you can comment some code as it improves code readability.
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.
Why you modified the original Class name ?
Odd number series in Hactoberfest