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

Monday, September 2, 2019

Codecademy String Concatenation 3/8


// Sample Solution
using System;

namespace StoryTime
{
  class Program
  {
    static void Main(string[] args)
    {
      // Declare the variables
string beginning = "There was a cat.";
      string middle = "She chased a rat.";
      string end = "Then ended up fat.";

      // Concatenate the string and the variables
string story = beginning + " " + middle + " " + end;

      // Print the story to the console
Console.WriteLine(story);
    }
  }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts