-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
25 lines (20 loc) · 1.05 KB
/
Copy pathProgram.cs
File metadata and controls
25 lines (20 loc) · 1.05 KB
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
using System.Text;
using TemperatureLibrary;
class Program
{
static void Main()
{
Console.OutputEncoding = Encoding.Unicode;
Console.InputEncoding = Encoding.Unicode;
/*
* Завдання 2
Створіть власну користувальницьку збірку за прикладом складання CarLibrary з уроку,
складання буде використовуватися для роботи з конвертером температури.
*/
TemperatureConverter converter = new TemperatureConverter();
Console.WriteLine("25°C переведемо в Фаренгейт: " + converter.CelsiusToFahrenheit(25));
Console.WriteLine("77°F переведемо в Цельсій: " + converter.FahrenheitToCelsius(77));
Console.WriteLine("100°C переведемо в Келвіни: " + converter.CelsiusToKelvin(100));
Console.WriteLine("300K переведемо в Цельсій: " + converter.KelvinToCelsius(300));
}
}