Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string greeting = "Hi!";
- string name = "Marry";
- int age = 18;
- Console.Write("{0} My Name is {1}.", greeting, name);
- Console.WriteLine("<-- Introduction");
- Console.Write("I am {0} years old.", age);
- Console.Write("<-- age{0}", Environment.NewLine);
- Console.Write("How old are you?");
- Console.Write("<-- Question");
- Console.WriteLine();
- Console.Write("What's your name?");
- Console.Write("<-- Another Question\r\n");//not recommended use
- Console.Write("This sentence is on a new line");
Advertisement
Add Comment
Please, Sign In to add comment