Created
January 26, 2019 19:59
-
-
Save aysegulsarikaya/d4161a121c1b89cb9cb17c1fc2a1e6f4 to your computer and use it in GitHub Desktop.
Artik Yil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
int year = DateTime.Today.Year; | |
int gunSayisi = 0; | |
Console.WriteLine("Artık yıl aranıyor......"); | |
Console.WriteLine(); | |
for (int i = 0; i < 20; i++) | |
{ | |
gunSayisi = DateTime.DaysInMonth(year, 02); | |
if (gunSayisi == 29) | |
{ | |
Console.WriteLine("{0} yılı artık yıl.", year); | |
} | |
else Console.WriteLine("{0} yılı artık yıl değil.", year); | |
Console.WriteLine(); | |
year -= 1; | |
} | |
Console.ReadKey(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment