Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
11
Task/Five-weekends/VBScript/five-weekends.vb
Normal file
11
Task/Five-weekends/VBScript/five-weekends.vb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
For y = 1900 To 2100
|
||||
For m = 1 To 12
|
||||
d = DateSerial(y, m + 1, 1) - 1
|
||||
If Day(d) = 31 And Weekday(d) = vbSunday Then
|
||||
WScript.Echo y & ", " & MonthName(m)
|
||||
i = i + 1
|
||||
End If
|
||||
Next
|
||||
Next
|
||||
|
||||
WScript.Echo vbCrLf & "Total = " & i & " months"
|
||||
Loading…
Add table
Add a link
Reference in a new issue