Начал с типов данных

This commit is contained in:
deadzilla 2026-04-14 22:35:52 +05:00
parent b298e2fb12
commit 85c2d250c0
1 changed files with 16 additions and 2 deletions

View File

@ -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" };