Skip to content

Update Program.cs#21

Open
MikeHickey17 wants to merge 1 commit into552ODST:masterfrom
MikeHickey17:master
Open

Update Program.cs#21
MikeHickey17 wants to merge 1 commit into552ODST:masterfrom
MikeHickey17:master

Conversation

@MikeHickey17
Copy link

No description provided.

return output;

}
return output;
Copy link
Member

@yurisim yurisim Sep 27, 2021

Choose a reason for hiding this comment

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

Why are there two return output here? You don't need the one on line 22.

else
{
return "Square";
}
Copy link
Member

Choose a reason for hiding this comment

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

Instead of having this many return statements just segregate a variable called "output" or something.

maxNum = numbers[i];
}
}
return maxNum;
Copy link
Member

Choose a reason for hiding this comment

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

Come see me when you are free and I'll tell you why this needs to be fixed.

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