Venciity

[ Telerik C#] Primitives And Variables - EX 8

Feb 13th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. // Declare two string variables and assign them with following value:
  2. // The "use" of quotations causes difficulties.
  3. // Do the above in two different ways: with and without using quoted strings.
  4.  
  5. using System;
  6.  
  7. namespace _08_Quotations
  8. {
  9.     class Quotations
  10.     {
  11.         static void Main()
  12.         {
  13.             string firstSentance = "The \"use\" of quotations causes difficulties.";
  14.             string secondSentance = "The use of quotations causes difficulties.";
  15.             Console.WriteLine(firstSentance);
  16.             Console.WriteLine(secondSentance);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment