Начал с типов данных
This commit is contained in:
parent
b298e2fb12
commit
85c2d250c0
|
|
@ -1,2 +1,16 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine("Hello, World!");
|
||||
//типы данных
|
||||
int age = 25;
|
||||
double price = 19.99;
|
||||
string name = "Vasya";
|
||||
bool active = true;
|
||||
char symbol = 'S';
|
||||
decimal tax = 15.99M;
|
||||
DateTime today = DateTime.Now;
|
||||
List<string> names = new List<string> { "Vasya", "Petya" };
|
||||
Dictionary<int, string> students = new Dictionary<int, string>
|
||||
{
|
||||
{1, "Alice" },
|
||||
{2, "Frank" },
|
||||
{3, "Ivan"}
|
||||
};
|
||||
string[] days = { "Mon", "Tue", "Wed" };
|
||||
|
|
|
|||
Loading…
Reference in New Issue