Created
September 28, 2016 00:57
-
-
Save sdossettswift/37fd859de7d129061c1f8600a10ba17c to your computer and use it in GitHub Desktop.
TIY .NET - 01 - Variables
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; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
string Hello = "Hello World"; | |
int Columbus = 1492; | |
bool myPet = false; | |
string Today = "9/27/16"; | |
double Amount = 5.45; | |
char letter = 'X'; | |
Console.WriteLine(Hello); | |
Console.WriteLine("Columbus sailed the world in " + Columbus); | |
Console.WriteLine("It is " + myPet + " that I have a dog at home."); | |
Console.WriteLine("Today is " + Today); | |
Console.WriteLine("I spent $" + Amount + " on a cheeseburger."); | |
Console.WriteLine(letter + " marks the spot."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment