Simple, Quality, Awesome Software

Playing with Variables

Below is the complete code for the Playing with Variables Try It Out! problem.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSharpBook.Examples.PlayingWithVariables
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 5;
            int b = 2;

            b = a;
            a = -3;

            Console.WriteLine(a);
            Console.WriteLine(b);
        }
    }
}