Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Five-weekends/Clojure/five-weekends.clj
Normal file
11
Task/Five-weekends/Clojure/five-weekends.clj
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(import java.util.GregorianCalendar
|
||||
java.text.DateFormatSymbols)
|
||||
|
||||
(->> (for [year (range 1900 2101)
|
||||
month [0 2 4 6 7 9 11] ;; 31 day months
|
||||
:let [cal (GregorianCalendar. year month 1)
|
||||
day (.get cal GregorianCalendar/DAY_OF_WEEK)]
|
||||
:when (= day GregorianCalendar/FRIDAY)]
|
||||
(println month "-" year))
|
||||
count
|
||||
(println "Total Months: " ,))
|
||||
Loading…
Add table
Add a link
Reference in a new issue