Wednesday 27 July 2016

C Sharp Array Tutorial

C# Array Tutorial

class Program
    {
        static void Main(string[] args)
        {
            int[] ar = new int[5];
            for(int i=0;i<5;i++)

C Sharp Input Tutorial

C# Input Tutorial

 class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            Console.Write("Enter First Number>> ");
            a = int.Parse(Console.ReadLine());
            Console.Write("Enter Second Number>> ");
            b = int.Parse(Console.ReadLine());

C Sharp Switch Case Tutorial

C # Switch Case Program

 class Program
    {
        static void Main(string[] args)
        {
            int i;
            Console.Write("Enter day of the week>> ");
            i=int.Parse(Console.ReadLine());
            switch(i)
            {
                case 1:

C Sharp Nested If Else Tutorial

class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            Console.Write("Enter Three numbers>>");
            a = int.Parse(Console.ReadLine());
            b = int.Parse(Console.ReadLine());
            c = int.Parse(Console.ReadLine());

            if (a > b)