Advertisement
Venciity

[SoftUni C#] Introduction - 07.PrintFirstAndLastName

Mar 7th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. // Create console application that prints your first and last name, each at a separate line.
  2. using System;
  3.  
  4. class PrintFirstAndLastName
  5. {
  6.     static void Main()
  7.     {
  8.         Console.Write("Enter your First name: ");
  9.         string firstName = Console.ReadLine();
  10.         Console.Write("Enter your Last name: ");
  11.         string LastName = Console.ReadLine();
  12.  
  13.         Console.WriteLine();
  14.         Console.WriteLine("{0} {1}",firstName,LastName);
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement