Skip to content

OddNumberSeries.java#1

Open
technicalreju wants to merge 2 commits into
KunalRRathod:masterfrom
technicalreju:master
Open

OddNumberSeries.java#1
technicalreju wants to merge 2 commits into
KunalRRathod:masterfrom
technicalreju:master

Conversation

@technicalreju

Copy link
Copy Markdown

Odd number series in Hactoberfest

class DivisorSeries
{
public static void main (String args[])
class Test

@KunalRRathod KunalRRathod Oct 18, 2020

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.

Rename class to DivisorSeries.

System.out.print(i+"/"+(i*i));
}
}
for (int i=1;i<=n;i++)

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.

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);;
}

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.

Good Program, you can comment some code as it improves code readability.

@KunalRRathod KunalRRathod left a comment

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.

Why you modified the original Class name ?

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