-
-
Notifications
You must be signed in to change notification settings - Fork 358
Expand file tree
/
Copy pathProgram.cs
More file actions
20 lines (18 loc) · 631 Bytes
/
Program.cs
File metadata and controls
20 lines (18 loc) · 631 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// submitted by Julian Schacher (jspp)
using System;
namespace EuclideanAlgorithm
{
class Program
{
static void Main(string[] args)
{
var euclideanAlgorithm = new EuclideanAlgorithm();
int check = euclideanAlgorithm.EuclidMod(64 * 67, 64 * 81);
int check2 = euclideanAlgorithm.EuclidSub(128 * 12, 128 * 77);
Console.WriteLine("[#]\nModulus-based euclidean algorithm result:");
Console.WriteLine(check);
Console.WriteLine("[#]\nSubtraction-based euclidean algorithm result:");
Console.WriteLine(check2);
}
}
}