Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Problem 8. Quotes in Strings
- //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.
- using System;
- class QuotesInString
- {
- static void Main()
- {
- string firstString = "The \"use\" of quotations causes difficulties.";
- Console.WriteLine(firstString);
- string secondString = @"The ""use"" of quotations causes difficulties.";
- Console.WriteLine(secondString);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement