Tuesday, 28 May 2019

If_else_Statement_used_C# Program


If_else_Statement


using System;
namespace If_else_Statement_used_Program
{
    class Program
    {
        static void Main(string[] args)
        {
            int a;
            a = 100;
            if (a < 20)
            {
                Console.WriteLine("a is greater than 20");
            }
            else {
                Console.WriteLine("a is lessthan  20");
            }
                Console.ReadKey();
           
        }
    }
}

No comments:

Post a Comment