C# - Programming Language
This course covers the basics of programming in C#. Work your way through the videos and we'll teach you everything you need to know to start your programming journey!

Variables

Lesson 4
Author : Mike Dane
Last Updated : November, 2017


Code

Copy/*
Names are case-sensitive and may begin with:
     letters, _, @
After, may include
     letters, numbers, _
Convention says
     Start with a lowercase word, then additional words are capitalized
     ex. myFirstVariable
*/

string characterName = "George";
int characterAge = 70;

Console.WriteLine("There once was a man named " + characterName);
Console.WriteLine("He was " + characterAge + " years old");
Console.WriteLine("He really liked the name " + characterName);
Console.WriteLine("But didn't like being " + characterAge);