static void Main(string[] args) { Console.WriteLine("random string"); int count = 0; while (count < 25) { Console.WriteLine(count); count++; } checkyear obj = new checkyear(); obj.readdata(); obj.leap(); if (obj.isLeap == true) { Console.WriteLine("leap"); } else { Console.WriteLine("no leap"); } Console.ReadLine(); }