On the output form all the leap year 2000 ~ 2100, calls for the Function process to judge for determining a given year?
CodePudding user response:
Keeping a job
CodePudding user response:
Handwritten, no debugging, you consult:
As a Boolean function runnian (byval year as an integer) If year mod 400=0 then Runnian=true Elseif year mod=0 and 4 year mod 100 & lt;> 0 then Runnian=true The else Runnian=false End the if End the function
Private sub form_load () Dim as integer I For I=2000 to 2100 If runnian (I) then The debug. Print I End the if Next End sub
CodePudding user response:
Pretty admire Mickey Mouse, is all to the code, But personally feel, obvious operations, the graduation design topic can't spoil them, or out is also evil in this industry,