Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create console application that prints your first and last name, each at a separate line.
- using System;
- class PrintFirstAndLastName
- {
- static void Main()
- {
- Console.Write("Enter your First name: ");
- string firstName = Console.ReadLine();
- Console.Write("Enter your Last name: ");
- string LastName = Console.ReadLine();
- Console.WriteLine();
- Console.WriteLine("{0} {1}",firstName,LastName);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement