Evgeniy 10 mesiacov pred
commit
45b337f5ac

+ 3 - 0
.gitignore.txt

@@ -0,0 +1,3 @@
+*/bin/
+*/obj/
+.idea

+ 86 - 0
Program.cs

@@ -0,0 +1,86 @@
+/*  int a, b;
+
+  Console.WriteLine("Введите число А");
+  a = int.Parse(Console.ReadLine());
+  Console.WriteLine("Введите число B");
+  b = int.Parse(Console.ReadLine());
+
+  Console.WriteLine("Сумма чисел равна ");
+  Console.Write(a + b); */
+          
+/*int a, b, c;
+Console.Write("Введите число от 0 до 10:");
+a = int.Parse(Console.ReadLine());
+
+if (a >= 11)
+{
+    Console.WriteLine("Число введено неверно ");
+    return;
+}
+
+Console.Write("Введите число от 0 до 10:");
+b = int.Parse(Console.ReadLine());
+
+if (b >= 11)
+{
+    Console.WriteLine("Число введено неверно ");
+    return;
+}
+
+c = (a + b) - 1;
+int one = c - a;
+int two = c - b;
+
+Console.WriteLine("Ответ = " + one + " " + two);*/
+
+
+        /*  int num1, num2;
+          Console.WriteLine("Введите число А");
+          num1 = int.Parse(Console.ReadLine());
+          Console.WriteLine("Введите число B");
+          num2 = int.Parse(Console.ReadLine());
+
+          if (num1 >= num2)
+          {
+
+              Console.WriteLine("Число A оказалось больше ");
+              Console.WriteLine(">");
+
+          }
+
+
+          else if (num1 <= num2)
+          {
+              Console.WriteLine("Число B оказалось больше ");
+              Console.WriteLine("<");
+          }
+
+        if (num1 == num2)
+{
+    Console.WriteLine("Число B и A оказались одинаковыми ");
+    Console.WriteLine("=");
+}
+*/
+
+       /* int a, b, c, f;
+        Console.Write("Введите число А");
+        a = int.Parse(Console.ReadLine());
+        Console.WriteLine("Введите число B");
+        b = int.Parse(Console.ReadLine());
+        Console.Write("Введите число C ");
+        c = int.Parse(Console.ReadLine());
+        Console.Write("Введите число B ");
+        f = int.Parse(Console.ReadLine());
+        
+        Console.WriteLine(f + " " + c + " " + " " + b);*/
+        
+        /*int a, b, c, f, s = 16;
+        Console.Write("Введите длинну стены ");
+        a = int.Parse(Console.ReadLine());
+        Console.Write("Введите ширину стены ");
+        b = int.Parse(Console.ReadLine());
+        Console.Write("Введите высоту стены ");
+        c = int.Parse(Console.ReadLine());
+        
+        f = (a * c) * 2 + (b * c) * 2;
+        Console.WriteLine( f/s + " банок красок необходимо");*/

+ 23 - 0
bin/Debug/net8.0/oap_labs.deps.json

@@ -0,0 +1,23 @@
+{
+  "runtimeTarget": {
+    "name": ".NETCoreApp,Version=v8.0",
+    "signature": ""
+  },
+  "compilationOptions": {},
+  "targets": {
+    ".NETCoreApp,Version=v8.0": {
+      "oap_labs/1.0.0": {
+        "runtime": {
+          "oap_labs.dll": {}
+        }
+      }
+    }
+  },
+  "libraries": {
+    "oap_labs/1.0.0": {
+      "type": "project",
+      "serviceable": false,
+      "sha512": ""
+    }
+  }
+}

BIN
bin/Debug/net8.0/oap_labs.dll


BIN
bin/Debug/net8.0/oap_labs.exe


BIN
bin/Debug/net8.0/oap_labs.pdb


+ 12 - 0
bin/Debug/net8.0/oap_labs.runtimeconfig.json

@@ -0,0 +1,12 @@
+{
+  "runtimeOptions": {
+    "tfm": "net8.0",
+    "framework": {
+      "name": "Microsoft.NETCore.App",
+      "version": "8.0.0"
+    },
+    "configProperties": {
+      "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
+    }
+  }
+}

+ 10 - 0
oap_labs.csproj

@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+    <PropertyGroup>
+        <OutputType>Exe</OutputType>
+        <TargetFramework>net8.0</TargetFramework>
+        <ImplicitUsings>enable</ImplicitUsings>
+        <Nullable>enable</Nullable>
+    </PropertyGroup>
+
+</Project>

+ 4 - 0
obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs

@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]

BIN
obj/Debug/net8.0/apphost.exe


+ 22 - 0
obj/Debug/net8.0/oap_labs.AssemblyInfo.cs

@@ -0,0 +1,22 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("oap_labs")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("oap_labs")]
+[assembly: System.Reflection.AssemblyTitleAttribute("oap_labs")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// Создано классом WriteCodeFragment MSBuild.
+

+ 1 - 0
obj/Debug/net8.0/oap_labs.AssemblyInfoInputs.cache

@@ -0,0 +1 @@
+aa354d97543c1b4adbcf45ab7f43ff8a5bbeb94909dc4017496ecc464c03222b

+ 13 - 0
obj/Debug/net8.0/oap_labs.GeneratedMSBuildEditorConfig.editorconfig

@@ -0,0 +1,13 @@
+is_global = true
+build_property.TargetFramework = net8.0
+build_property.TargetPlatformMinVersion = 
+build_property.UsingMicrosoftNETSdkWeb = 
+build_property.ProjectTypeGuids = 
+build_property.InvariantGlobalization = 
+build_property.PlatformNeutralAssembly = 
+build_property.EnforceExtendedAnalyzerRules = 
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = oap_labs
+build_property.ProjectDir = C:\Users\kotob\OneDrive\Рабочий стол\oap_labs\oap_labs\
+build_property.EnableComHosting = 
+build_property.EnableGeneratedComInterfaceComImportInterop = 

+ 8 - 0
obj/Debug/net8.0/oap_labs.GlobalUsings.g.cs

@@ -0,0 +1,8 @@
+// <auto-generated/>
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;

BIN
obj/Debug/net8.0/oap_labs.assets.cache


+ 1 - 0
obj/Debug/net8.0/oap_labs.csproj.CoreCompileInputs.cache

@@ -0,0 +1 @@
+1f1bc37768bcf2191b812c6efdccbcfaf14ff52b6a5c0bbb707ee1f1672a8cc5

+ 14 - 0
obj/Debug/net8.0/oap_labs.csproj.FileListAbsolute.txt

@@ -0,0 +1,14 @@
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.GeneratedMSBuildEditorConfig.editorconfig
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.AssemblyInfoInputs.cache
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.AssemblyInfo.cs
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.csproj.CoreCompileInputs.cache
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\bin\Debug\net8.0\oap_labs.exe
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\bin\Debug\net8.0\oap_labs.deps.json
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\bin\Debug\net8.0\oap_labs.runtimeconfig.json
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\bin\Debug\net8.0\oap_labs.dll
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\bin\Debug\net8.0\oap_labs.pdb
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.dll
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\refint\oap_labs.dll
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.pdb
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\oap_labs.genruntimeconfig.cache
+C:\Users\kotob\RiderProjects\oap_labs\oap_labs\obj\Debug\net8.0\ref\oap_labs.dll

BIN
obj/Debug/net8.0/oap_labs.dll


+ 1 - 0
obj/Debug/net8.0/oap_labs.genruntimeconfig.cache

@@ -0,0 +1 @@
+e9f346b6dc7c97ff752697511ace6eadcfd0a8d26100cfd8a20a26bfe0a300b9

BIN
obj/Debug/net8.0/oap_labs.pdb


BIN
obj/Debug/net8.0/ref/oap_labs.dll


BIN
obj/Debug/net8.0/refint/oap_labs.dll


+ 63 - 0
obj/oap_labs.csproj.nuget.dgspec.json

@@ -0,0 +1,63 @@
+{
+  "format": 1,
+  "restore": {
+    "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj": {}
+  },
+  "projects": {
+    "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj": {
+      "version": "1.0.0",
+      "restore": {
+        "projectUniqueName": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj",
+        "projectName": "oap_labs",
+        "projectPath": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj",
+        "packagesPath": "C:\\Users\\kotob\\.nuget\\packages\\",
+        "outputPath": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\obj\\",
+        "projectStyle": "PackageReference",
+        "configFilePaths": [
+          "C:\\Users\\kotob\\AppData\\Roaming\\NuGet\\NuGet.Config",
+          "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+        ],
+        "originalTargetFrameworks": [
+          "net8.0"
+        ],
+        "sources": {
+          "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+          "https://api.nuget.org/v3/index.json": {}
+        },
+        "frameworks": {
+          "net8.0": {
+            "targetAlias": "net8.0",
+            "projectReferences": {}
+          }
+        },
+        "warningProperties": {
+          "warnAsError": [
+            "NU1605"
+          ]
+        }
+      },
+      "frameworks": {
+        "net8.0": {
+          "targetAlias": "net8.0",
+          "imports": [
+            "net461",
+            "net462",
+            "net47",
+            "net471",
+            "net472",
+            "net48",
+            "net481"
+          ],
+          "assetTargetFallback": true,
+          "warn": true,
+          "frameworkReferences": {
+            "Microsoft.NETCore.App": {
+              "privateAssets": "all"
+            }
+          },
+          "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
+        }
+      }
+    }
+  }
+}

+ 15 - 0
obj/oap_labs.csproj.nuget.g.props

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
+    <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
+    <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
+    <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+    <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\kotob\.nuget\packages\</NuGetPackageFolders>
+    <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
+    <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.8.0</NuGetToolVersion>
+  </PropertyGroup>
+  <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+    <SourceRoot Include="C:\Users\kotob\.nuget\packages\" />
+  </ItemGroup>
+</Project>

+ 2 - 0
obj/oap_labs.csproj.nuget.g.targets

@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

+ 68 - 0
obj/project.assets.json

@@ -0,0 +1,68 @@
+{
+  "version": 3,
+  "targets": {
+    "net8.0": {}
+  },
+  "libraries": {},
+  "projectFileDependencyGroups": {
+    "net8.0": []
+  },
+  "packageFolders": {
+    "C:\\Users\\kotob\\.nuget\\packages\\": {}
+  },
+  "project": {
+    "version": "1.0.0",
+    "restore": {
+      "projectUniqueName": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj",
+      "projectName": "oap_labs",
+      "projectPath": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj",
+      "packagesPath": "C:\\Users\\kotob\\.nuget\\packages\\",
+      "outputPath": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\obj\\",
+      "projectStyle": "PackageReference",
+      "configFilePaths": [
+        "C:\\Users\\kotob\\AppData\\Roaming\\NuGet\\NuGet.Config",
+        "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+      ],
+      "originalTargetFrameworks": [
+        "net8.0"
+      ],
+      "sources": {
+        "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+        "https://api.nuget.org/v3/index.json": {}
+      },
+      "frameworks": {
+        "net8.0": {
+          "targetAlias": "net8.0",
+          "projectReferences": {}
+        }
+      },
+      "warningProperties": {
+        "warnAsError": [
+          "NU1605"
+        ]
+      }
+    },
+    "frameworks": {
+      "net8.0": {
+        "targetAlias": "net8.0",
+        "imports": [
+          "net461",
+          "net462",
+          "net47",
+          "net471",
+          "net472",
+          "net48",
+          "net481"
+        ],
+        "assetTargetFallback": true,
+        "warn": true,
+        "frameworkReferences": {
+          "Microsoft.NETCore.App": {
+            "privateAssets": "all"
+          }
+        },
+        "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"
+      }
+    }
+  }
+}

+ 8 - 0
obj/project.nuget.cache

@@ -0,0 +1,8 @@
+{
+  "version": 2,
+  "dgSpecHash": "k856g1C0h2jtl1oxd6wWHn6m4LDS2y4QavtN/95fqps7XV9ABLkOhfF1moF835W0+C1/ZEO62UE3eW9cpfOizQ==",
+  "success": true,
+  "projectFilePath": "C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj",
+  "expectedPackageFiles": [],
+  "logs": []
+}

+ 1 - 0
obj/project.packagespec.json

@@ -0,0 +1 @@
+"restore":{"projectUniqueName":"C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj","projectName":"oap_labs","projectPath":"C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\oap_labs.csproj","outputPath":"C:\\Users\\kotob\\OneDrive\\Рабочий стол\\oap_labs\\oap_labs\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net8.0":{"targetAlias":"net8.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\8.0.100/PortableRuntimeIdentifierGraph.json"}}

+ 1 - 0
obj/rider.project.model.nuget.info

@@ -0,0 +1 @@
+17059362821812612

+ 1 - 0
obj/rider.project.restore.info

@@ -0,0 +1 @@
+17064660151977500

+ 233 - 0
readme.md

@@ -0,0 +1,233 @@
+
+
+```
+Задание №1 - A+B
+```
+
+```
+Необходимо сложить 2 целых числа и выдать сумму 
+этих чисел
+```   
+    
+```
+            int a, b;
+
+            Console.WriteLine("Введите число А");
+            a = int.Parse(Console.ReadLine());
+            Console.WriteLine("Введите число B");
+            b = int.Parse(Console.ReadLine());
+
+            Console.WriteLine("Сумма чисел равна ");
+            Console.Write(a + b);
+```
+
+```
+Введите число А
+2
+```
+
+```
+Введите число B
+3
+```
+
+```
+Ответ:
+Сумма чисел равна
+5
+```
+
+```
+Задание №2 - Два бандита
+```
+
+```
+Надо узнать сколько бандиты не прострелили банок
+```
+
+```
+Решение:
+```
+
+```
+int a, b, c;
+Console.Write("Введите число от 0 до 10:");
+a = int.Parse(Console.ReadLine());
+
+if (a >= 11)
+{
+    Console.WriteLine("Число введено неверно ");
+    return;
+}
+
+Console.Write("Введите число от 0 до 10:");
+b = int.Parse(Console.ReadLine());
+
+if (b >= 11)
+{
+    Console.WriteLine("Число введено неверно ");
+    return;
+}
+
+c = (a + b) - 1;
+int one = c - a;
+int two = c - b;
+
+Console.WriteLine("Ответ = " + one + " " + two);
+```
+```
+Результат:
+```
+
+```
+Введите певрое число не больше 10:
+2
+```
+
+```
+Введите второе число не больше 10:
+3
+```
+
+```
+Ответ = 2 1
+```
+
+```
+Задание №3 - Ремонт
+```
+
+```
+Сделать программу, которая считает сама
+```
+
+```
+int a, b, c, f, s = 16;
+        Console.Write("Введите длинну стены ");
+        a = int.Parse(Console.ReadLine());
+        Console.Write("Введите ширину стены ");
+        b = int.Parse(Console.ReadLine());
+        Console.Write("Введите высоту стены ");
+        c = int.Parse(Console.ReadLine());
+        
+        f = (a * c) * 2 + (b * c) * 2;
+        Console.WriteLine( f/s + " банок красок необходимо");
+```
+
+```
+Результат:
+```
+
+```
+Введите высоту, длину и ширину
+```
+
+```
+13 7 5
+```
+
+```
+Ответ:
+12
+```
+```
+Задание №4 - Больше-меньше
+```
+
+```
+Надо сравнить два числа
+```
+
+```
+Решение:
+```
+
+```
+int num1, num2;
+          Console.WriteLine("Введите число А");
+          num1 = int.Parse(Console.ReadLine());
+          Console.WriteLine("Введите число B");
+          num2 = int.Parse(Console.ReadLine());
+
+          if (num1 >= num2)
+          {
+
+              Console.WriteLine("Число A оказалось больше ");
+              Console.WriteLine(">");
+
+          }
+
+
+          else if (num1 <= num2)
+          {
+              Console.WriteLine("Число B оказалось больше ");
+              Console.WriteLine("<");
+          }
+
+        if (num1 == num2)
+{
+    Console.WriteLine("Число B и A оказались одинаковыми ");
+    Console.WriteLine("=");
+}
+```
+
+```
+Результат:
+```
+
+```
+Первое число:
+46464
+```
+
+```
+Второе число:
+7979779
+```
+
+```
+Ответ:
+<
+```
+
+```
+Задание №5 - Разворот
+```
+
+```
+Необходимо ввести 3 переменные, а затем они развернутся в обратном порядке
+```
+
+```
+int a, b, c, f;
+        Console.Write("Введите число А");
+        a = int.Parse(Console.ReadLine());
+        Console.WriteLine("Введите число B");
+        b = int.Parse(Console.ReadLine());
+        Console.Write("Введите число C ");
+        c = int.Parse(Console.ReadLine());
+        Console.Write("Введите число B ");
+        f = int.Parse(Console.ReadLine());
+        
+        Console.WriteLine(f + " " + c + " " + " " + b);
+```
+
+```
+Результат:
+Первая переменная: 3
+```
+
+```
+Вторая переменная: 1
+```
+
+```
+Третья переменная: 2
+```
+
+```
+Четвертая переменная: 3
+```
+```
+Ответ: 3 2 1
+```