Tuesday, 28 May 2019

Nested-If-used C# Program Source Code


Nested_If



using System;
namespace Nested_If_used_Program
{
    class Program
    {
        static void Main(string[] args)
        {

            int a = 100;
            int b = 200;
            if (a == 100) {
                if (b == 200) {

                    Console.WriteLine("Value of a is 100 and 200");
                }
            }
            Console.WriteLine("Exact value of is a:{0}",a);
            Console.WriteLine("Exact value of is a:{0}",b);
            Console.ReadKey();

        }
    }

No comments:

Post a Comment