Month: September 2015

Keyword ref and code examples in C#

Reading Time: 1 minuteKeyword ref in C# forces an argument to be passed to the method to be passed by reference. It means that argument must be initialized before it is passed to the method. It also means that any change in the

Least common multiple calculator

Reading Time: 1 minuteEnter integer numbers and calculate least common multiple. N:   M:  LCM:  Calculate Read how least common multiple can be calculated in C#

Least common multiple in C#

Reading Time: 1 minuteCalculate least common multiple Least common multiple is the smallest positive integer that is divisible by both a and b. Now, if we know greatest common divisor of two positive, greater then zero integers a and b, we can calculate

Greatest common divisor calculator

Reading Time: 1 minuteEnter integer numbers and calculate greatest common divisor. N:   M:  GCD:  Calculate Read how greatest common divisor can be calculated in C#

Tagged with: ,

Greatest common divisor code in C#

Reading Time: 1 minuteGreatest common divisor of two positive integer numbers N and M, both larger then zero is the largest integer R that divide both N and M. If for given N and M, greatest common divisor is 1, we say that

Tagged with: ,
Top