Basic -C# Reading and writing to a console
* Reading From the Console * Writing to the Console * Two Ways To Write Console 1) Concatenation 2) Place Holder Syntax Reading and Writing to Console using System; // A Namespace is used to Organize your code and is Collection of Classes class Program { static void Main() // Main Methods { // Prompt The User For His First Name Console.WriteLine("Enter First Name"); // Read the name from Console string firstname = Console.ReadLine(); // Prompt the User For His Last Name ...
Comments
Post a Comment