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
6 changes: 6 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
53 changes: 53 additions & 0 deletions Homework 1.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Homework_1</RootNamespace>
<AssemblyName>Homework 1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
7 changes: 7 additions & 0 deletions Homework 1.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>
</StartArguments>
</PropertyGroup>
</Project>
25 changes: 25 additions & 0 deletions Homework 1.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.4.33122.133
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Homework 1", "Homework 1.csproj", "{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2CF7C7A-D63F-48F7-BBC6-8CAE839C709C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5C0CC003-CD37-4F23-A04D-04897B6435CF}
EndGlobalSection
EndGlobal
120 changes: 120 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Homework_1
{
internal class Program
{
static void Main(string[] args)
{
// Задача 10
//int i = 0;
//int number = 0;
//while (i < 1)
//{
// Console.WriteLine("Введите трёхзначное число.");
// number = int.Parse(Console.ReadLine());
// int check = number / 100;
// if (check >= 1 && check < 10)
// {
// check = check * 100;
// number = number - check;
// number = number / 10;
// i++;
// }
// else
// {
// Console.WriteLine("Число не трёхзначное, попробуйте снова.");
// }
//}
//Console.WriteLine(number);

// Задача 13

// Хотел сделать возможным выход из программы, путём введения не цифры, а буквы, но у меня не вышло, хотя я помню, что вы об этом рассказывали

//int i = 0;
//int number = 0;
//int d = 0;
//while (i < 1)
//{
// Console.WriteLine("Введите число:");
// number = int.Parse(Console.ReadLine());
// if (number > 99){
// d = 1;
// }
// else if(number < 100)
// {
// d = 2;
// }
// else
// {
// d = 3;
// }
// switch (d)
// {
// case 1:
// Console.WriteLine("Третья цифра "+ number.ToString()[2]);
// break;
// case 2:
// Console.WriteLine("Третьей цифры нет.");
// break;
// case 3:
// i++;
// break;

// }

//}

// Задача 15

Console.WriteLine("Введите число от 1 до 7:");
int day = int.Parse(Console.ReadLine());

switch (day)
{
case 1: Console.WriteLine("Понедельник - день тяжёлый. Не выходной.");
break;
case 2: Console.WriteLine("Кто в понедельник бездельник, тот и во вторник не работник. Не выходной.");
break;
case 3: Console.WriteLine("Среда пришла — неделя прошла. Не выходной.");
break;
case 4: Console.WriteLine("У лжеца на одной неделе семь четвергов. Не выходной.");
break;
case 5: Console.WriteLine("Зарплата в пятницу — удар по печени. Не выходной.");
break;
case 6: Console.WriteLine("Счастья без суббот не бывает. Выходной.");
break;
case 7: Console.WriteLine("Воскресенье — день накануне понедельника, так что он отравлен. Выходной.");
break;
default: Console.WriteLine("Такого дня недели нет, но куда деваться?");
break;
}

//░░░░░░░░░░░░▄▐
//░░░░░░▄▄▄░░▄██▄
//░░░░░▐▀█▀▌░░░░▀█▄
//░░░░░▐█▄█▌░░░░░░▀█▄
//░░░░░░▀▄▀░░░▄▄▄▄▄▀▀
//░░░░▄▄▄██▀▀▀▀
//░░░█▀▄▄▄█░▀▀
//░░░▌░▄▄▄▐▌▀▀▀
//▄░▐░░░▄▄░█░▀▀
//▀█▌░░░▄░▀█▀░▀
//░░░░░░░▄▄▐▌▄▄
//░░░░░░░▀███▀█░▄
//░░░░░░▐▌▀▄▀▄▀▐▄
//░░░░░░▐▀░░░░░░▐▌
//░░░░░░█░░░░░░░░█
//░░░░░▐▌░░░░░░░░░█
//░░░░░█░░░░░░░░░░▐▌


}
}
}
36 changes: 36 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Общие сведения об этой сборке предоставляются следующим набором
// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
// связанные с этой сборкой.
[assembly: AssemblyTitle("Homework 1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Homework 1")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
// из модели COM задайте для атрибута ComVisible этого типа значение true.
[assembly: ComVisible(false)]

// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM
[assembly: Guid("c2cf7c7a-d63f-48f7-bbc6-8cae839c709c")]

// Сведения о версии сборки состоят из указанных ниже четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Номер редакции
//
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file added bin/Debug/Homework 1.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions bin/Debug/Homework 1.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Binary file added bin/Debug/Homework 1.pdb
Binary file not shown.
4 changes: 4 additions & 0 deletions obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
Binary file added obj/Debug/DesignTimeResolveAssemblyReferences.cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions obj/Debug/Homework 1.csproj.CoreCompileInputs.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7f4b213b428f4c013f19137338418ee1f5525793
8 changes: 8 additions & 0 deletions obj/Debug/Homework 1.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.csproj.AssemblyReference.cache
D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.csproj.SuggestedBindingRedirects.cache
D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.csproj.CoreCompileInputs.cache
D:\MVashenko homework\Homework 1\bin\Debug\Homework 1.exe.config
D:\MVashenko homework\Homework 1\bin\Debug\Homework 1.exe
D:\MVashenko homework\Homework 1\bin\Debug\Homework 1.pdb
D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.exe
D:\MVashenko homework\Homework 1\obj\Debug\Homework 1.pdb
Empty file.
Binary file added obj/Debug/Homework 1.exe
Binary file not shown.
Binary file added obj/Debug/Homework 1.pdb
Binary file not shown.