Skip to content

Create SumOfFibonacciSeries.java#37

Open
Ravitejavelamuri wants to merge 7 commits into
khagapati-bagh:mainfrom
Ravitejavelamuri:patch-1
Open

Create SumOfFibonacciSeries.java#37
Ravitejavelamuri wants to merge 7 commits into
khagapati-bagh:mainfrom
Ravitejavelamuri:patch-1

Conversation

@Ravitejavelamuri
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Owner

@khagapati-bagh khagapati-bagh left a comment

Choose a reason for hiding this comment

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

Hi @Ravitejavelamuri
Thank you for your contribution.

Please follow the contribution guide
Use the code formatter.

Hi, updated my code according to the contribution guidelines.
@Ravitejavelamuri
Copy link
Copy Markdown
Contributor Author

Hi @khagapati-bagh i edited my code, please review

Copy link
Copy Markdown
Owner

@khagapati-bagh khagapati-bagh left a comment

Choose a reason for hiding this comment

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

Hi @Ravitejavelamuri

Here are some comments for you

Comment thread Java/Language/SumOfFibonacciSeries.java Outdated
@@ -3,43 +3,41 @@
Description : This code finds even sum of fibonacci series till number n
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.

Intend it properly
e.g:
/*
Author:
Date:
Description:
*/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hi I again edited, please have a look

Comment thread Java/Language/SumOfFibonacciSeries.java Outdated
// Computing the value of first fibonacci series
// and storing the sum of even indexed numbers
static int Fib_Even_Sum(int N) {
if (N <= 0)
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.

add a block for every if/for/while loop, even if it contains a single line.

Comment thread Java/Language/SumOfFibonacciSeries.java Outdated
fib[j] = fib[j - 1] + fib[j - 2];

// Only considering even indexes
if (j % 2 == 0)
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.

add block

Copy link
Copy Markdown
Owner

@khagapati-bagh khagapati-bagh left a comment

Choose a reason for hiding this comment

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

Hi @Ravitejavelamuri

Your code is fine. Just check my comments.

// Only considering even indexes
if (j % 2 == 0) {
s += fib[j];
}
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.

check the indentation for the if block

Comment thread Java/Language/SumOfFibonacciSeries.java Outdated
@@ -0,0 +1,45 @@
/*Author: Raviteja
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.

move the Autho to next line like
/*
Author:
Date:
Description:
*/

Copy link
Copy Markdown
Owner

@khagapati-bagh khagapati-bagh left a comment

Choose a reason for hiding this comment

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

Hi @Ravitejavelamuri Please check the comments.

// Only considering even indexes
if (j % 2 == 0) {
s += fib[j];
if (j % 2 == 0) {
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.

Check this indentaion. Use the code formatter mentioned in the contribution guidelines.

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