using System;
using System.Globalization;
public class MainClass {
public static void Main() {
JulianCalendar myCal = new JulianCalendar();
int monthInAYear;
for ( int y = 2001; y <= 2005; y++ ) {
monthInAYear = myCal.GetMonthsInYear( y, JulianCalendar.CurrentEra );
for ( int m = 1; m <= monthInAYear; m++ ){
Console.WriteLine(myCal.IsLeapMonth( y, m, JulianCalendar.CurrentEra ) );
}
}
}
}
|