Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
Cinjection
Oleksi Derkatch
Send A Message
Rating
Not
Rated
Please login to rate source codes.

Click here to register a free account with us.
General Details
C++
Posted 4.23 Years Ago
423 Views
Received 0 Ratings
More Codes By This Author
Wordsearch generator.
Linked List in C#
Julia Set
Mandelbrot Set Generator
MD5 Brute-Forcer
Articles By This Author
Intorduction to memoizati...
Strings in C++
Vectors in C++
Use Cases
[C++] Pointers and their...

Number of Days in which the 13th has landed on Friday


Description
I made this program for a programming challenge to calculate how many times the 13th falls on whichever weekday. This is a slightly modified version. It counts from Jan 1 0000 to Dec 31 N, where N is user entered.

The outputted numbers represent how many times the thirteenth has fallen on a certain day of the week, in order starting with Starts on Saturday and ends on Friday.

Entering 2007 yields: 3436 3453 3433 3448 3438 3440 3448
meaning that we have had 3448 Friday the 13th's since Jan 1st 0000 to Dec 31 2007

Of course this program takes into account leap years.
Source Code
Comments
Please login to post comments.
 
Cinjection     Posted 4.23 Years Ago
 
 
Haha, Woops. Fixed.
 
Binaries     Posted 4.23 Years Ago
 
 
You spelled number wrong.
 
Cinjection     Posted 4.23 Years Ago
 
 
Thanks :)
 
otoom     Posted 4.23 Years Ago
 
 
Cool.... :)
You're good at C++.
Keep it upo.

Otoom
Page 1 of 1
More "C++" Source Codes By This Author
Recently Posted "C++" Source Codes
Recently Rated "C++" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
If you made money from keeping your profile up to date, say $30 and up, per month. What extra time would you spend on your profile?

No extra time
A few hours at weekends
A whole day each week
Every minute i can get free


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved