aleahim

PrintMyName

Jan 30th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. using System;
  2.  
  3. class PrintMyName
  4. {
  5.     static void Main()
  6.     {
  7.         HelloMyName();
  8.     }
  9.     static void HelloMyName()
  10.     {
  11.         Console.Write("Your name is ");
  12.         string name = Console.ReadLine();
  13.         Console.WriteLine("Hello, {0}", name);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment