dev/CSHARP/Program.cs

17 lines
401 B
C#

//типы данных
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" };