|
Public Sub FindLeap ()
n = 0
Y = 2010
Do Until (Y> 2050)
If Y Mod 4 = 0 Then
If (Y Mod 100) <> 0 Then
leap = 1
ElseIf (Y Mod 400) = 0 Then
leap = 1
Else
leap = 0
End If
Else
leap = 0
End If
If leap = 1 Then
Print Y;
n = n + 1
If n Mod 5 = 0 Then
Print
End If
Y = Y + 1
Loop
End Sub
Private Sub cmdleap_click ()
Print "Leap years between 2010 and 2050:"
Call FindLeap
End Sub
When running, prompt Loop is missing do ???? |
|