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/Seminar07/Self/Task01/Task01.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}") = "Task01", "Task01\Task01.csproj", "{62FB3BE4-CDF1-47A3-80D9-98BFAB34A612}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{62FB3BE4-CDF1-47A3-80D9-98BFAB34A612}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62FB3BE4-CDF1-47A3-80D9-98BFAB34A612}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62FB3BE4-CDF1-47A3-80D9-98BFAB34A612}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62FB3BE4-CDF1-47A3-80D9-98BFAB34A612}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {BE2C2BE2-4D68-4C56-9F43-D61A77F5F30D}
EndGlobalSection
EndGlobal
21 changes: 21 additions & 0 deletions Seminars/Seminar07/Self/Task01/Task01/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace Task01
{
internal class Program
{
static void Triangle(int a)
{
string s = "";
for (int i = 0; i < a; i++)
{
s += "*";
Console.WriteLine(s);

}
}
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
Triangle(n);
}
}
}
10 changes: 10 additions & 0 deletions Seminars/Seminar07/Self/Task01/Task01/Task01.csproj
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>
25 changes: 25 additions & 0 deletions Seminars/Seminar07/Self/Task02/Task02.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}") = "Task02", "Task02\Task02.csproj", "{8A3C8F41-1CB1-4AE1-B4C3-9F0FD9A222AC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8A3C8F41-1CB1-4AE1-B4C3-9F0FD9A222AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8A3C8F41-1CB1-4AE1-B4C3-9F0FD9A222AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A3C8F41-1CB1-4AE1-B4C3-9F0FD9A222AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A3C8F41-1CB1-4AE1-B4C3-9F0FD9A222AC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CB1B3753-77D4-4537-BFE8-6D262D57C229}
EndGlobalSection
EndGlobal
36 changes: 36 additions & 0 deletions Seminars/Seminar07/Self/Task02/Task02/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
namespace Task02
{
internal class Program
{
static void Triangle(int a)
{
string s = "";
for (int i = 0; i < a; i++)
{
s += "*";
Console.WriteLine(s);

}
}
static void Ornament(int n, int m)
{
if (m > 0)
{
for (int i = 0; i < m; i++)
{
Triangle(n);
}
}
else
{
return;
}
}
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int m = int.Parse(Console.ReadLine());
Ornament(n,m);
}
}
}
10 changes: 10 additions & 0 deletions Seminars/Seminar07/Self/Task02/Task02/Task02.csproj
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>
25 changes: 25 additions & 0 deletions Seminars/Seminar07/Self/Task03/Task03.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}") = "Task03", "Task03\Task03.csproj", "{23F54482-702F-4990-8787-929BAE4E3516}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{23F54482-702F-4990-8787-929BAE4E3516}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23F54482-702F-4990-8787-929BAE4E3516}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23F54482-702F-4990-8787-929BAE4E3516}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23F54482-702F-4990-8787-929BAE4E3516}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {18E7470A-2A80-4097-872F-A892FEAE19AA}
EndGlobalSection
EndGlobal
56 changes: 56 additions & 0 deletions Seminars/Seminar07/Self/Task03/Task03/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
namespace Task03
{
internal class Program
{
//static void Triangle(int a)
//{
// string s = "";
// for (int i = 0; i < a; i++)
// {
// s += "*";
// Console.WriteLine(s);

// }
//}
//static void Ornament(int n, int m)
//{
// if (m > 0)
// {
// for (int i = 0; i < m; i++)
// {
// Triangle(n);
// }
// }
// else
// {
// return;
// }
//}

static void Ornament(int n, int m)
{
for (int i = 1; i <= n; i++)
{
for (int j = 1; j <= m; j++)
{
for (int q = 1; q <= i; q++)
{
Console.Write('*');
}
for (int q = 1; q <= n - i; q++)
{
Console.Write(' ');
}
}
Console.WriteLine();
}
}
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
int m = int.Parse(Console.ReadLine());
Ornament(n, m);
}
}

}
10 changes: 10 additions & 0 deletions Seminars/Seminar07/Self/Task03/Task03/Task03.csproj
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>