I am looking for help with a programme to count the number of Friday 13ths in a calender year. I've no idea where to start? Any ideas greatly aapreciated.
you could use that then plug in the 13th of every month of a given year and see how many you have --
altenatively you could call the calendar function via a system call and pipe the out put to a file(i.e. on unix its system("cal 11 2002 > tmp.txt"//prints calender for november 2002 ) then parse the file and determine if the 13th lies on a friday.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.