Skip to content

Instantly share code, notes, and snippets.

@sdossettswift
Created September 28, 2016 00:57
Show Gist options
  • Save sdossettswift/37fd859de7d129061c1f8600a10ba17c to your computer and use it in GitHub Desktop.
Save sdossettswift/37fd859de7d129061c1f8600a10ba17c to your computer and use it in GitHub Desktop.
TIY .NET - 01 - Variables
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