Csharp-oefening

Leap year

Meld je aan om je oplossing in te dienen en feedback te krijgen.

// Leap year program using System; class Submission { // ------------------------- // Subprograms // ------------------------- static bool is_leap_year(int year) { } // ------------------------- // Main program // ------------------------- public static void Main(string[] args) { if (is_leap_year(year)) { Console.WriteLine($"{year} is a leap year."); } } }