Using Modulus or % to get the Remainder in C#

Below is a sample soucrecode demonstrating how to get remainder in c# using Modulus or Remainder operator (%).

Using Modulus or % to get the Remainder in C#

using System;

namespace AbundantCode

{

internal class Program

{

//Using Modulus or % to get the Remainder in C#

private static void Main(string[] args)

{

int result;

double Input;

var output = 10 % 3;

Console.WriteLine("Remainder = " + output.ToString());

Console.ReadLine();

}

}

}
Using Modulus or % to get the Remainder in C#