Created
February 11, 2012 04:22
-
-
Save cadwallion/1796129 to your computer and use it in GitHub Desktop.
Proper Conventions according to Cad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
class NamedWelcome { | |
static void Main(string[] args) { | |
string name; | |
if (args.Length == 0) { | |
Console.WriteLine("What is your name: "); | |
name = Console.ReadLine(); | |
} else { | |
name = args[0]; | |
} | |
Console.WriteLine("Hello, {0}!", name); | |
Console.WriteLine("Welcome to the C# Train"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment