Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #107.79K
1 Posted Topic
A better algorithm: public static int NumberOfFridays( int DayOfFirstFridayInMonth, int LengthOfMonth ) { int length = LengthOfMonth - DayOfFirstFridayInMonth; return ( 1 + ( length / 7 ) ); } It's better because it's explicit (so it should be faster and it takes less code). Micah Hoover
The End.
micahraleigh