-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
27 lines (24 loc) · 917 Bytes
/
Program.cs
File metadata and controls
27 lines (24 loc) · 917 Bytes
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
using System;
using System.Linq;
namespace DeveloperTests
{
public class Program
{
public static void Main(string[] args)
{
var (byWord, byLenght) = WordCounter.Do("I have a transportation device which is a red bike which I love to ride.");
Console.WriteLine("First task:");
Console.WriteLine("byWord:");
Console.WriteLine(string.Join("\r\n", byWord.Select(x => $"{x.Key}={x.Value}")));
Console.WriteLine();
Console.WriteLine("byLenght:");
Console.WriteLine(string.Join("\r\n", byLenght.Select(x => $"{x.Key}={x.Value}")));
Console.WriteLine();
Console.WriteLine();
Console.WriteLine("Second task:");
Console.WriteLine("Hello World!");
var r = StringReverser.Do("Hello World!");
Console.WriteLine(r);
}
}
}