static void Main(string[] args) { Forest forest1 = new Forest("Amazon", "Tropical"); Forest forest2 = new Forest("Sahara", "Desert"); Console.WriteLine(Forest.ForestsCreated); Console.WriteLine(Math.PI); Forest.PrintTreeFacts(); }
static void Main(string[] args) { Forest f = new Forest("Columbia"); Forest.PrintTreeFacts(); f.Burn(); f.Grow(); f.Grow(); Console.WriteLine(f.Trees); }
static void Main(string[] args) { Forest f = new Forest("Amazon"); Console.WriteLine(f.Trees); for (var i = 0; f.age < 5; i++) { f.Grow(); } Console.WriteLine(f.Trees); f.Burn(); Console.WriteLine(f.Trees); Console.WriteLine(f.age); Console.WriteLine(); Forest.PrintTreeFacts(); }
static void Main(string[] args) { Forest.PrintTreeFacts(); }