C Sharp/C# Program to Compute Quotient and Remainder

  C# Projects

C# Program to Compute Quotient and Remainder

    class Program
    {
        static void Main(string[] args)
        {

            int dividend = 50, divisor = 8;

            int quotient = dividend / divisor;
            int remainder = dividend % divisor;

            Console.WriteLine("Dividend:{0} Divisor:{1}",dividend,divisor);
            Console.WriteLine("Quotient = " + quotient);
            Console.WriteLine("Remainder = " + remainder);
            Console.ReadLine();
        }
    }