Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- //Declare two string variables and assign them with following value:
- //The "use" of quotations causes difficulties.
- //Do the above in two different ways: with and without using quoted strings. Print the variables to ensure that their value was correctly defined.
- class QuotesInStrings
- {
- static void Main()
- {
- string withQuotedStrings = @"The ""use"" of quotations causes difficulties.";
- string withoutQuotedStrings = "The \"use\" of quotations causes difficulties.";
- Console.WriteLine(withQuotedStrings);
- Console.WriteLine(withoutQuotedStrings);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement