Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, September 3, 2019

Codecademy Return Errors 3/7


// Sample Solution
using System;

namespace ReturnErrors
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine(DecoratePlanet("Mars"));
      Console.WriteLine("Is Pluto really a dwarf...?");
      Console.WriteLine(IsPlutoADwarf());
      Console.WriteLine("Then how many planets are there in the galaxy...?");
      Console.WriteLine(CountThePlanets());
    }
   
    static string DecoratePlanet(string planet)
    {
       return $"*..*..* Welcome to {planet} *..*..*";
    }
   
    static bool IsPlutoADwarf()
    {
      bool answer = true;
      return answer;
    }
   
    static string CountThePlanets()
    {
      return "8 planets, usually";
    }
  }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts