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

Monday, September 2, 2019

Codecademy Building Strings 2/8


// Sample Solution
using System;

namespace PrideAndPrejudice
{
  class Program
  {
    static void Main(string[] args)
    {
      // First string variable
string firstSentence = "It is a truth universally \nacknowledged, that a single man in \npossession of a good fortune, must be \nin want of a wife.";
      // Second string variable
string firstSpeech = "\"My dear Mr. Bennet,\" said his lady \nto him one day, \"have you heard that \nNetherfield Park is let at last?\"";

      // Print variable and newline
Console.WriteLine(firstSentence);
      Console.WriteLine("\n");
      Console.WriteLine(firstSpeech);
    }
  }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts