Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Seminars/Seminar01/Self/Task01/Program.cs
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
// Your code here!
namespace ConsoleApp1
{
internal class Program
{
static void Main()
{
string familiya = Console.ReadLine();

string umya = Console.ReadLine();

string otchestvo = Console.ReadLine();

Console.WriteLine("Фамилия: " + familiya);
Console.WriteLine("Имя: " + umya);
Console.WriteLine("Отчество: " + otchestvo);

}
}
}
22 changes: 21 additions & 1 deletion Seminars/Seminar01/Self/Task02/Program.cs
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
// Your code here!
namespace ConsoleApp2
{
internal class Program
{
static void Main()
{



string familiya = Console.ReadLine();

string umya = Console.ReadLine();

string otchestvo = Console.ReadLine();

Console.WriteLine(familiya + umya + otchestvo);


}
}
}
16 changes: 15 additions & 1 deletion Seminars/Seminar01/Self/Task03/Program.cs
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
// Your code here!
namespace ConsoleApp2
{
internal class Program
{
static void Main()
{

string umya = Console.ReadLine();

Console.WriteLine("Здравствуйте, " + umya);


}
}
}
19 changes: 18 additions & 1 deletion Seminars/Seminar01/Self/Task04/Program.cs
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
// Your code here!
namespace ConsoleApp2
{
internal class Program
{
static void Main()
{

Console.BackgroundColor = ConsoleColor.DarkCyan;
Console.ForegroundColor = ConsoleColor.Magenta;

string umya = Console.ReadLine();

Console.WriteLine("Здравствуйте, " + umya);


}
}
}
24 changes: 23 additions & 1 deletion Seminars/Seminar01/Self/Task05/Program.cs
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
// Your code here!
namespace ConsoleApp2
{
internal class Program
{
static void Main()
{

double U = double.Parse(Console.ReadLine());

double R = double.Parse(Console.ReadLine());





Console.WriteLine("I = " + U / R);

Console.WriteLine("P = " + U * U / R);


}
}
}
21 changes: 19 additions & 2 deletions Seminars/Seminar01/Self/Task06/Program.cs
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
namespace ConsoleApp2
{
internal class Program
{
static void Main()
{

double pervi_katet = double.Parse(Console.ReadLine());

double vtoroi_katet = double.Parse(Console.ReadLine());



Console.WriteLine("Гипотенуза = " + Math.Sqrt(pervi_katet * pervi_katet + vtoroi_katet * vtoroi_katet));


}
}
}
25 changes: 25 additions & 0 deletions Seminars/Seminar02/Self/Task01/ConsoleApp1/ConsoleApp1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{3B9CECD8-A5CB-4112-91EF-849AD2869DDF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3B9CECD8-A5CB-4112-91EF-849AD2869DDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3B9CECD8-A5CB-4112-91EF-849AD2869DDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3B9CECD8-A5CB-4112-91EF-849AD2869DDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3B9CECD8-A5CB-4112-91EF-849AD2869DDF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {62D2B241-CD98-45A0-A1E0-25614C9AB120}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
18 changes: 18 additions & 0 deletions Seminars/Seminar02/Self/Task01/ConsoleApp1/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
int zifr = int.Parse(Console.ReadLine());

double veschest = double.Parse(Console.ReadLine());

char bukva = char.Parse(Console.ReadLine());

Console.WriteLine(zifr);
Console.WriteLine(veschest);
Console.WriteLine(bukva);
}
}
}
25 changes: 25 additions & 0 deletions Seminars/Seminar02/Self/Task02/ConsoleApp1/ConsoleApp1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{DBAABB51-6342-4CB2-AB41-883975EACF87}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DBAABB51-6342-4CB2-AB41-883975EACF87}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBAABB51-6342-4CB2-AB41-883975EACF87}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBAABB51-6342-4CB2-AB41-883975EACF87}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBAABB51-6342-4CB2-AB41-883975EACF87}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2CBF317A-3F2C-40EF-A82F-F685825DF25C}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
18 changes: 18 additions & 0 deletions Seminars/Seminar02/Self/Task02/ConsoleApp1/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
double x1 = double.Parse(Console.ReadLine());

double x2 = double.Parse(Console.ReadLine());

double ost = x1 % 10 + x2 % 10;

Console.WriteLine("Сумма целых частей " + x1 + " и " + x2 + " равна " + "{0:f0}", x1 + x2 - 1);

Console.WriteLine("Сумма дробных частей " + x1 + " и " + x2 + " равна 0," + "{0:f0}", ost - 1);
}
}
}
25 changes: 25 additions & 0 deletions Seminars/Seminar02/Self/Task03/ConsoleApp1/ConsoleApp1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{8377D4E0-EEFF-4688-9DC0-3DD5CFBEDDB8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8377D4E0-EEFF-4688-9DC0-3DD5CFBEDDB8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8377D4E0-EEFF-4688-9DC0-3DD5CFBEDDB8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8377D4E0-EEFF-4688-9DC0-3DD5CFBEDDB8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8377D4E0-EEFF-4688-9DC0-3DD5CFBEDDB8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0447D897-9DF3-45B6-957E-7DA0B0BB2906}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
23 changes: 23 additions & 0 deletions Seminars/Seminar02/Self/Task03/ConsoleApp1/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
int x = int.Parse(Console.ReadLine());

int y = int.Parse(Console.ReadLine());

int z = int.Parse(Console.ReadLine());

int helper1 = z >= x ? (y >= x ? x : y) : (y >= z ? z : y);

int helper3 = z >= x ? (y >= z ? y : z) : (y >= x ? y : x);

int helper2 = x + y + z - helper1 - helper3;

Console.WriteLine(helper1 + " " + helper2 + " " + helper3);

}
}
}
25 changes: 25 additions & 0 deletions Seminars/Seminar02/Self/Task04/ConsoleApp1/ConsoleApp1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{3FFE1D7D-B290-4BF9-A081-C39D9407D2DE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3FFE1D7D-B290-4BF9-A081-C39D9407D2DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3FFE1D7D-B290-4BF9-A081-C39D9407D2DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3FFE1D7D-B290-4BF9-A081-C39D9407D2DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3FFE1D7D-B290-4BF9-A081-C39D9407D2DE}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {903F47F9-EE14-428F-93DF-1D9EA10A833C}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
18 changes: 18 additions & 0 deletions Seminars/Seminar02/Self/Task04/ConsoleApp1/ConsoleApp1/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace ConsoleApp1
{
internal class Program
{
static void Main(string[] args)
{
string ans = "Ни цифра, ни буква";

char a = char.Parse(Console.ReadLine());

ans = a >= '0' ? (a <= '9' ? "Это цифра" : "") : "";
ans = a > 'а' ? (a < 'я' ? "Это буква" : "") : "";
ans = a > 'А' ? (a < 'Я' ? "Это буква" : "") : "";

Console.WriteLine(ans);
}
}
}
25 changes: 25 additions & 0 deletions Seminars/Seminar02/Self/Task05/ConsoleApp1/ConsoleApp1.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "ConsoleApp1\ConsoleApp1.csproj", "{DDB6B883-2A55-4248-B6EA-1AE9B6877437}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DDB6B883-2A55-4248-B6EA-1AE9B6877437}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DDB6B883-2A55-4248-B6EA-1AE9B6877437}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DDB6B883-2A55-4248-B6EA-1AE9B6877437}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DDB6B883-2A55-4248-B6EA-1AE9B6877437}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3F1FCA2E-BCB3-4F2A-B70B-F0BED71A7302}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
Loading