-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
39 lines (34 loc) · 1.27 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using Abbreviation_of_numbers.Scripts;
namespace Abbreviation_of_numbers
{
public class Program
{
public static void Main(string[] args)
{
ExampleMethod();
}
private static void ExampleMethod()
{
var convertorRussian = new NumberConverter(Language.Russian);
var convertorEnglish = new NumberConverter(Language.English);
var number = 1_000_000_000_000_000_000d;
var resultRussian = convertorRussian.ConvertNumber(number);
var resultEnglish = convertorEnglish.ConvertNumber(number);
Console.WriteLine($"Input value: {number:#,#,#}");
Console.WriteLine($"Russian Degree Name: {resultRussian}");
Console.WriteLine($"English Degree Name: {resultEnglish}");
}
private static void NumbersList()
{
var convertor = new NumberConverter(Language.English);
var number = (double)123_456;
for (var i = 0; i < 111; i++)
{
var result = convertor.ConvertNumber(number);
Console.WriteLine($"Incoming number:{number:#,#,#} ---> after: {result}");
number *= 1034;
}
}
}
}