543,539 views 1 on YTPak
1,311 46

Published on 02 Jun 2012 | over 6 years ago

Text version of the video


All C# Text Articles

All C# Slides

All Dot Net and SQL Server Tutorials in English

All Dot Net and SQL Server Tutorials in Arabic

In this video, we will discuss
1. Reading from the console
2. Writing to the console
3. Two ways to write to console
a) Concatenation
b) Place holder syntax -- Most preferred

Code samples used in the demo
using System;

class Program
static void Main()
// Prompt the user for his name
Console.WriteLine("Please enter your name");
// Read the name from console
string UserName = Console.ReadLine();
// Concatenate name with hello word and print
Console.WriteLine("Hello " + UserName);

//Placeholder syntax to print name with hello word
//Console.WriteLine("Hello {0}", UserName);

Please note that C# is case sensitive language.
Customize Your Hybrid Embed Video Player!

6-digit hexadecimal color code without # symbol.


Report video function is under development.


Loading related videos...