We are providing online training of realtime Live project on Asp.Net MVC with Angular and Web API. For more information click here. If you have any query then drop the messase in CONTACT FORM

Saturday, September 19, 2015

Create seald class in c#

class Program
        {
            static void Main(string[] args)
            {
                SealdClass sc = new SealdClass();
                Console.WriteLine("Enter the first number");
                int x = int.Parse(Console.ReadLine());
                Console.WriteLine("Enter the second number");
                int y = int.Parse(Console.ReadLine());
                sc.a = x;
                sc.b = y;
                Console.WriteLine();
                Console.WriteLine("a = {0},b={1}", sc.a, sc.b);
                Console.ReadLine();
            }

        }

Output:



No comments: