Dima Sorokin před 2 roky
rodič
revize
6ad7919cfe

+ 63 - 0
.gitattributes

@@ -0,0 +1,63 @@
+###############################################################################
+# Set default behavior to automatically normalize line endings.
+###############################################################################
+* text=auto
+
+###############################################################################
+# Set default behavior for command prompt diff.
+#
+# This is need for earlier builds of msysgit that does not have it on by
+# default for csharp files.
+# Note: This is only used by command line
+###############################################################################
+#*.cs     diff=csharp
+
+###############################################################################
+# Set the merge driver for project and solution files
+#
+# Merging from the command prompt will add diff markers to the files if there
+# are conflicts (Merging from VS is not affected by the settings below, in VS
+# the diff markers are never inserted). Diff markers may cause the following 
+# file extensions to fail to load in VS. An alternative would be to treat
+# these files as binary and thus will always conflict and require user
+# intervention with every merge. To do so, just uncomment the entries below
+###############################################################################
+#*.sln       merge=binary
+#*.csproj    merge=binary
+#*.vbproj    merge=binary
+#*.vcxproj   merge=binary
+#*.vcproj    merge=binary
+#*.dbproj    merge=binary
+#*.fsproj    merge=binary
+#*.lsproj    merge=binary
+#*.wixproj   merge=binary
+#*.modelproj merge=binary
+#*.sqlproj   merge=binary
+#*.wwaproj   merge=binary
+
+###############################################################################
+# behavior for image files
+#
+# image files are treated as binary by default.
+###############################################################################
+#*.jpg   binary
+#*.png   binary
+#*.gif   binary
+
+###############################################################################
+# diff behavior for common document formats
+# 
+# Convert binary document formats to text before diffing them. This feature
+# is only available from the command line. Turn it on by uncommenting the 
+# entries below.
+###############################################################################
+#*.doc   diff=astextplain
+#*.DOC   diff=astextplain
+#*.docx  diff=astextplain
+#*.DOCX  diff=astextplain
+#*.dot   diff=astextplain
+#*.DOT   diff=astextplain
+#*.pdf   diff=astextplain
+#*.PDF   diff=astextplain
+#*.rtf   diff=astextplain
+#*.RTF   diff=astextplain

+ 363 - 0
.gitignore

@@ -0,0 +1,363 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Oo]ut/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.obj
+*.iobj
+*.pch
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*~
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd

+ 25 - 0
Method Gauss.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.1.32414.318
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Method Gauss", "Method Gauss\Method Gauss.csproj", "{F0ED9908-2928-42CE-8CAB-ECC640AAAFB0}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{F0ED9908-2928-42CE-8CAB-ECC640AAAFB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{F0ED9908-2928-42CE-8CAB-ECC640AAAFB0}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{F0ED9908-2928-42CE-8CAB-ECC640AAAFB0}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{F0ED9908-2928-42CE-8CAB-ECC640AAAFB0}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {89ACD6EF-73AB-4B70-9170-2F5880213B62}
+	EndGlobalSection
+EndGlobal

+ 6 - 0
Method Gauss/App.config

@@ -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 - 0
Method Gauss/Method Gauss.csproj

@@ -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>{F0ED9908-2928-42CE-8CAB-ECC640AAAFB0}</ProjectGuid>
+    <OutputType>Exe</OutputType>
+    <RootNamespace>Method_Gauss</RootNamespace>
+    <AssemblyName>Method Gauss</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>

+ 2996 - 0
Method Gauss/Program.cs

@@ -0,0 +1,2996 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Method_Gauss
+{
+    internal class Program
+    {
+        static void Main(string[] args)
+        {
+            do
+            {               
+                Console.WriteLine("*** Метод Гаус ***");
+                Console.WriteLine();
+                Console.WriteLine("Ввиде количество переменных:");
+                int per = Convert.ToInt32(Console.ReadLine());
+                int a;
+                int b;
+                int[] B;
+                Console.WriteLine();
+                if (per == 2)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 2; b = 2;
+                    int[,] A2 = new int[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A2[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write("\t" + A2[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A2)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'",edin));                            
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 3;
+                    int[,] A2_1 = new int [a, b];
+                    A2_1[0, 0] = A2[0, 0]/ A2[0, 0];
+                    A2_1[0, 1] = A2[0, 1]/ A2[0, 0];
+                    A2_1[0, 2] = B[0]/ A2[0, 0];
+                    A2_1[1, 0] = A2[0, 0]*(-A2[1,0])+A2[1,0];
+                    A2_1[1, 1] = A2[0, 1] * (-A2[1, 0]) + A2[1, 1];
+                    A2_1[1, 2] = B[0] * (-A2[1, 0]) + B[1];
+                    Console.WriteLine("|" + A2_1[0, 0] + "|" + A2_1[0, 1] + "||" + A2_1[0, 2] + "|");
+                    Console.WriteLine("|" + A2_1[1, 0] + "|" + A2_1[1, 1] + "||" + A2_1[1, 2] + "|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    int[,] A2_2 = new int[a, b];
+                    A2_2[1, 0] = A2_1[1, 0]/ A2_1[1, 1]; 
+                    A2_2[1, 1] = A2_1[1, 1]/ A2_1[1, 1];
+                    A2_2[1, 2] = A2_1[1, 2] / A2_1[1, 1];
+                    A2_2[0, 0] = A2_2[1, 0] * (-A2_1[0, 1]) + A2_1[0, 0];
+                    A2_2[0, 1] = A2_2[1, 1] * (-A2_1[0, 1]) + A2_1[0, 1];
+                    A2_2[0, 2] = A2_2[1, 2] * (-A2_1[0, 1]) + A2_1[0, 2];                    
+                    Console.WriteLine("|" + A2_2[0, 0] + "|" + A2_2[0, 1] + "||" + A2_2[0, 2] + "|");
+                    Console.WriteLine("|" + A2_2[1, 0] + "|" + A2_2[1, 1] + "||" + A2_2[1, 2] + "|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A2_2[0, 2]);
+                    Console.WriteLine("x2 = " + A2_2[1, 2]);
+                }
+                else if (per == 3)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 3; b = 3; 
+                    double[,] A3 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A3[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A3[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A3)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 4;
+                    double[,] A3_1 = new double[a, b];
+                    A3_1[0, 0] = A3[0, 0] / A3[0, 0];
+                    A3_1[0, 1] = A3[0, 1] / A3[0, 0];
+                    A3_1[0, 2] = A3[0, 2] / A3[0, 0];
+                    A3_1[0, 3] = B[0] / A3[0, 0];
+                    A3_1[1, 0] = (A3_1[0, 0] * (-A3[1, 0])) + A3[1, 0];
+                    A3_1[1, 1] = (A3_1[0, 1] * (-A3[1, 0])) + A3[1, 1];
+                    A3_1[1, 2] = (A3_1[0, 2] * (-A3[1, 0])) + A3[1, 2];
+                    A3_1[1, 3] = (A3_1[0, 3] * (-A3[1, 0])) + B[1];
+                    A3_1[2, 0] = (A3_1[0, 0] * (-A3[2, 0])) + A3[2, 0];
+                    A3_1[2, 1] = (A3_1[0, 1] * (-A3[2, 0])) + A3[2, 1];
+                    A3_1[2, 2] = (A3_1[0, 2] * (-A3[2, 0])) + A3[2, 2];
+                    A3_1[2, 3] = (A3_1[0, 3] * (-A3[2, 0])) + B[2];
+                    Console.WriteLine("\t|" + A3_1[0, 0] + "\t|" + A3_1[0, 1] + "\t|" + A3_1[0, 2] + "\t||" + A3_1[0, 3] + "\t|");
+                    Console.WriteLine("\t|" + A3_1[1, 0] + "\t|" + A3_1[1, 1] + "\t|" + A3_1[1, 2] + "\t||" + A3_1[1, 3] + "\t|");
+                    Console.WriteLine("\t|" + A3_1[2, 0] + "\t|" + A3_1[2, 1] + "\t|" + A3_1[2, 2] + "\t||" + A3_1[2, 3] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A3_2 = new double[a, b];
+                    A3_2[1, 0] = A3_1[1, 0] / A3_1[1, 1];
+                    A3_2[1, 1] = A3_1[1, 1] / A3_1[1, 1];
+                    A3_2[1, 2] = A3_1[1, 2] / A3_1[1, 1];
+                    A3_2[1, 3] = A3_1[1, 3] / A3_1[1, 1];
+                    A3_2[0, 0] = (A3_2[1, 0] * (-A3_1[0, 1])) + A3_1[0, 0];
+                    A3_2[0, 1] = (A3_2[1, 1] * (-A3_1[0, 1])) + A3_1[0, 1];
+                    A3_2[0, 2] = (A3_2[1, 2] * (-A3_1[0, 1])) + A3_1[0, 2];
+                    A3_2[0, 3] = (A3_2[1, 3] * (-A3_1[0, 1])) + A3_1[0, 3];                    
+                    A3_2[2, 0] = (A3_2[1, 0] * (-A3_1[2, 1])) + A3_1[2, 0];
+                    A3_2[2, 1] = (A3_2[1, 1] * (-A3_1[2, 1])) + A3_1[2, 1];
+                    A3_2[2, 2] = (A3_2[1, 2] * (-A3_1[2, 1])) + A3_1[2, 2];
+                    A3_2[2, 3] = (A3_2[1, 3] * (-A3_1[2, 1])) + A3_1[2, 3];
+                    Console.WriteLine("\t|" + A3_2[0, 0] + "\t|" + A3_2[0, 1] + "\t|" + A3_2[0, 2] + "\t||" + A3_2[0, 3] + "\t|");
+                    Console.WriteLine("\t|" + A3_2[1, 0] + "\t|" + A3_2[1, 1] + "\t|" + A3_2[1, 2] + "\t||" + A3_2[1, 3] + "\t|");
+                    Console.WriteLine("\t|" + A3_2[2, 0] + "\t|" + A3_2[2, 1] + "\t|" + A3_2[2, 2] + "\t||" + A3_2[2, 3] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A3_3 = new double[a, b];
+                    A3_3[2, 0] = A3_2[2, 0] / A3_2[2, 2];
+                    A3_3[2, 1] = A3_2[2, 1] / A3_2[2, 2];
+                    A3_3[2, 2] = A3_2[2, 2] / A3_2[2, 2];
+                    A3_3[2, 3] = A3_2[2, 3] / A3_2[2, 2];
+                    A3_3[0, 0] = (A3_3[2, 0] * (-A3_2[0, 2])) + A3_2[0, 0];
+                    A3_3[0, 1] = (A3_3[2, 1] * (-A3_2[0, 2])) + A3_2[0, 1];
+                    A3_3[0, 2] = (A3_3[2, 2] * (-A3_2[0, 2])) + A3_2[0, 2];
+                    A3_3[0, 3] = (A3_3[2, 3] * (-A3_2[0, 2])) + A3_2[0, 3];
+                    A3_3[1, 0] = (A3_3[2, 0] * (-A3_2[1, 2])) + A3_2[1, 0];
+                    A3_3[1, 1] = (A3_3[2, 1] * (-A3_2[1, 2])) + A3_2[1, 1];
+                    A3_3[1, 2] = (A3_3[2, 2] * (-A3_2[1, 2])) + A3_2[1, 2];
+                    A3_3[1, 3] = (A3_3[2, 3] * (-A3_2[1, 2])) + A3_2[1, 3];                    
+                    Console.WriteLine("\t|" + A3_3[0, 0] + "\t|" + A3_3[0, 1] + "\t|" + A3_3[0, 2] + "\t||" + A3_3[0, 3] + "\t|");
+                    Console.WriteLine("\t|" + A3_3[1, 0] + "\t|" + A3_3[1, 1] + "\t|" + A3_3[1, 2] + "\t||" + A3_3[1, 3] + "\t|");
+                    Console.WriteLine("\t|" + A3_3[2, 0] + "\t|" + A3_3[2, 1] + "\t|" + A3_3[2, 2] + "\t||" + A3_3[2, 3] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A3_3[0, 3]);
+                    Console.WriteLine("x2 = " + A3_3[1, 3]);
+                    Console.WriteLine("x3 = " + A3_3[2, 3]);
+                }
+                else if(per == 4)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 4; b = 4;
+                    double[,] A4 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A4[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A4[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A4)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 5;
+                    double[,] A4_1 = new double[a, b];
+                    A4_1[0, 0] = A4[0, 0] / A4[0, 0];
+                    A4_1[0, 1] = A4[0, 1] / A4[0, 0];
+                    A4_1[0, 2] = A4[0, 2] / A4[0, 0];
+                    A4_1[0, 3] = A4[0, 3] / A4[0, 0];
+                    A4_1[0, 4] = B[0] / A4[0, 0];
+                    A4_1[1, 0] = (A4_1[0, 0] * (-A4[1, 0])) + A4[1, 0];
+                    A4_1[1, 1] = (A4_1[0, 1] * (-A4[1, 0])) + A4[1, 1];
+                    A4_1[1, 2] = (A4_1[0, 2] * (-A4[1, 0])) + A4[1, 2];
+                    A4_1[1, 3] = (A4_1[0, 3] * (-A4[1, 0])) + A4[1, 3];
+                    A4_1[1, 4] = (A4_1[0, 3] * (-A4[1, 0])) + A4[1, 3];
+                    A4_1[1, 5] = (A4_1[0, 4] * (-A4[1, 0])) + B[1];
+                    A4_1[2, 0] = (A4_1[0, 0] * (-A4[2, 0])) + A4[2, 0];
+                    A4_1[2, 1] = (A4_1[0, 1] * (-A4[2, 0])) + A4[2, 1];
+                    A4_1[2, 2] = (A4_1[0, 2] * (-A4[2, 0])) + A4[2, 2];
+                    A4_1[2, 3] = (A4_1[0, 3] * (-A4[2, 0])) + A4[2, 3];
+                    A4_1[2, 4] = (A4_1[0, 4] * (-A4[2, 0])) + B[2];
+                    A4_1[3, 0] = (A4_1[0, 0] * (-A4[3, 0])) + A4[3, 0];
+                    A4_1[3, 1] = (A4_1[0, 1] * (-A4[3, 0])) + A4[3, 1];
+                    A4_1[3, 2] = (A4_1[0, 2] * (-A4[3, 0])) + A4[3, 2];
+                    A4_1[3, 3] = (A4_1[0, 3] * (-A4[3, 0])) + A4[3, 3];
+                    A4_1[3, 4] = (A4_1[0, 4] * (-A4[3, 0])) + B[3];
+                    Console.WriteLine("\t|" + A4_1[0, 0] + "\t|" + A4_1[0, 1] + "\t|" + A4_1[0, 2] + "\t|" + A4_1[0, 3] + "\t||" + A4_1[0, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_1[1, 0] + "\t|" + A4_1[1, 1] + "\t|" + A4_1[1, 2] + "\t|" + A4_1[1, 3] + "\t||" + A4_1[1, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_1[2, 0] + "\t|" + A4_1[2, 1] + "\t|" + A4_1[2, 2] + "\t|" + A4_1[2, 3] + "\t||" + A4_1[2, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_1[3, 0] + "\t|" + A4_1[3, 1] + "\t|" + A4_1[3, 2] + "\t|" + A4_1[3, 3] + "\t||" + A4_1[3, 4] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A4_2 = new double[a, b];
+                    A4_2[1, 0] = A4_1[1, 0] / A4_1[1, 1];
+                    A4_2[1, 1] = A4_1[1, 1] / A4_1[1, 1];
+                    A4_2[1, 2] = A4_1[1, 2] / A4_1[1, 1];
+                    A4_2[1, 3] = A4_1[1, 3] / A4_1[1, 1];
+                    A4_2[1, 4] = A4_1[1, 4] / A4_1[1, 1];
+                    A4_2[0, 0] = (A4_2[1, 0] * (-A4_1[0, 1])) + A4_1[0, 0];
+                    A4_2[0, 1] = (A4_2[1, 1] * (-A4_1[0, 1])) + A4_1[0, 1];
+                    A4_2[0, 2] = (A4_2[1, 2] * (-A4_1[0, 1])) + A4_1[0, 2];
+                    A4_2[0, 3] = (A4_2[1, 3] * (-A4_1[0, 1])) + A4_1[0, 3];
+                    A4_2[0, 4] = (A4_2[1, 4] * (-A4_1[0, 1])) + A4_1[0, 4];
+                    A4_2[2, 0] = (A4_2[1, 0] * (-A4_1[2, 1])) + A4_1[2, 0];
+                    A4_2[2, 1] = (A4_2[1, 1] * (-A4_1[2, 1])) + A4_1[2, 1];
+                    A4_2[2, 2] = (A4_2[1, 2] * (-A4_1[2, 1])) + A4_1[2, 2];
+                    A4_2[2, 3] = (A4_2[1, 3] * (-A4_1[2, 1])) + A4_1[2, 3];
+                    A4_2[2, 4] = (A4_2[1, 4] * (-A4_1[2, 1])) + A4_1[2, 4];
+                    A4_2[3, 0] = (A4_2[1, 0] * (-A4_1[3, 1])) + A4_1[3, 0];
+                    A4_2[3, 1] = (A4_2[1, 1] * (-A4_1[3, 1])) + A4_1[3, 1];
+                    A4_2[3, 2] = (A4_2[1, 2] * (-A4_1[3, 1])) + A4_1[3, 2];
+                    A4_2[3, 3] = (A4_2[1, 3] * (-A4_1[3, 1])) + A4_1[3, 3];
+                    A4_2[3, 4] = (A4_2[1, 4] * (-A4_1[3, 1])) + A4_1[3, 4];
+                    Console.WriteLine("\t|" + A4_2[0, 0] + "\t|" + A4_2[0, 1] + "\t|" + A4_2[0, 2] + "\t|" + A4_2[0, 3] + "\t||" + A4_2[0, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_2[1, 0] + "\t|" + A4_2[1, 1] + "\t|" + A4_2[1, 2] + "\t|" + A4_2[1, 3] + "\t||" + A4_2[1, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_2[2, 0] + "\t|" + A4_2[2, 1] + "\t|" + A4_2[2, 2] + "\t|" + A4_2[2, 3] + "\t||" + A4_2[2, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_2[3, 0] + "\t|" + A4_2[3, 1] + "\t|" + A4_2[3, 2] + "\t|" + A4_2[3, 3] + "\t||" + A4_2[3, 4] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A4_3 = new double[a, b];
+                    A4_3[2, 0] = A4_2[2, 0] / A4_2[2, 2];
+                    A4_3[2, 1] = A4_2[2, 1] / A4_2[2, 2];
+                    A4_3[2, 2] = A4_2[2, 2] / A4_2[2, 2];
+                    A4_3[2, 3] = A4_2[2, 3] / A4_2[2, 2];
+                    A4_3[2, 4] = A4_2[2, 4] / A4_2[2, 2];
+                    A4_3[0, 0] = (A4_3[2, 0] * (-A4_2[0, 2])) + A4_2[0, 0];
+                    A4_3[0, 1] = (A4_3[2, 1] * (-A4_2[0, 2])) + A4_2[0, 1];
+                    A4_3[0, 2] = (A4_3[2, 2] * (-A4_2[0, 2])) + A4_2[0, 2];
+                    A4_3[0, 3] = (A4_3[2, 3] * (-A4_2[0, 2])) + A4_2[0, 3];
+                    A4_3[0, 4] = (A4_3[2, 4] * (-A4_2[0, 2])) + A4_2[0, 4];
+                    A4_3[1, 0] = (A4_3[2, 0] * (-A4_2[1, 2])) + A4_2[1, 0];
+                    A4_3[1, 1] = (A4_3[2, 1] * (-A4_2[1, 2])) + A4_2[1, 1];
+                    A4_3[1, 2] = (A4_3[2, 2] * (-A4_2[1, 2])) + A4_2[1, 2];
+                    A4_3[1, 3] = (A4_3[2, 3] * (-A4_2[1, 2])) + A4_2[1, 3];
+                    A4_3[1, 4] = (A4_3[2, 4] * (-A4_2[1, 2])) + A4_2[1, 4];
+                    A4_3[3, 0] = (A4_3[2, 0] * (-A4_2[3, 2])) + A4_2[3, 0];
+                    A4_3[3, 1] = (A4_3[2, 1] * (-A4_2[3, 2])) + A4_2[3, 1];
+                    A4_3[3, 2] = (A4_3[2, 2] * (-A4_2[3, 2])) + A4_2[3, 2];
+                    A4_3[3, 3] = (A4_3[2, 3] * (-A4_2[3, 2])) + A4_2[3, 3];
+                    A4_3[3, 4] = (A4_3[2, 4] * (-A4_2[3, 2])) + A4_2[3, 4];
+                    Console.WriteLine("\t|" + A4_3[0, 0] + "\t|" + A4_3[0, 1] + "\t|" + A4_3[0, 2] + "\t|" + A4_3[0, 3] + "\t||" + A4_3[0, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_3[1, 0] + "\t|" + A4_3[1, 1] + "\t|" + A4_3[1, 2] + "\t|" + A4_3[1, 3] + "\t||" + A4_3[1, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_3[2, 0] + "\t|" + A4_3[2, 1] + "\t|" + A4_3[2, 2] + "\t|" + A4_3[2, 3] + "\t||" + A4_3[2, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_3[3, 0] + "\t|" + A4_3[3, 1] + "\t|" + A4_3[3, 2] + "\t|" + A4_3[3, 3] + "\t||" + A4_3[3, 4] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A4_4 = new double[a, b];
+                    A4_4[3, 0] = A4_3[3, 0] / A4_3[3, 3];
+                    A4_4[3, 1] = A4_3[3, 1] / A4_3[3, 3];
+                    A4_4[3, 2] = A4_3[3, 2] / A4_3[3, 3];
+                    A4_4[3, 3] = A4_3[3, 3] / A4_3[3, 3];
+                    A4_4[3, 4] = A4_3[3, 4] / A4_3[3, 3];
+                    A4_4[0, 0] = (A4_4[3, 0] * (-A4_3[0, 3])) + A4_3[0, 0];
+                    A4_4[0, 1] = (A4_4[3, 1] * (-A4_3[0, 3])) + A4_3[0, 1];
+                    A4_4[0, 2] = (A4_4[3, 2] * (-A4_3[0, 3])) + A4_3[0, 2];
+                    A4_4[0, 3] = (A4_4[3, 3] * (-A4_3[0, 3])) + A4_3[0, 3];
+                    A4_4[0, 4] = (A4_4[3, 4] * (-A4_3[0, 3])) + A4_3[0, 4];
+                    A4_4[1, 0] = (A4_4[3, 0] * (-A4_3[1, 3])) + A4_3[1, 0];
+                    A4_4[1, 1] = (A4_4[3, 1] * (-A4_3[1, 3])) + A4_3[1, 1];
+                    A4_4[1, 2] = (A4_4[3, 2] * (-A4_3[1, 3])) + A4_3[1, 2];
+                    A4_4[1, 3] = (A4_4[3, 3] * (-A4_3[1, 3])) + A4_3[1, 3];
+                    A4_4[1, 4] = (A4_4[3, 4] * (-A4_3[1, 3])) + A4_3[1, 4];
+                    A4_4[2, 0] = (A4_4[3, 0] * (-A4_3[2, 3])) + A4_3[2, 0];
+                    A4_4[2, 1] = (A4_4[3, 1] * (-A4_3[2, 3])) + A4_3[2, 1];
+                    A4_4[2, 2] = (A4_4[3, 2] * (-A4_3[2, 3])) + A4_3[2, 2];
+                    A4_4[2, 3] = (A4_4[3, 3] * (-A4_3[2, 3])) + A4_3[2, 3];
+                    A4_4[2, 4] = (A4_4[3, 4] * (-A4_3[2, 3])) + A4_3[2, 4];
+                    Console.WriteLine("\t|" + A4_4[0, 0] + "\t|" + A4_4[0, 1] + "\t|" + A4_4[0, 2] + "\t|" + A4_4[0, 3] + "\t||" + A4_4[0, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_4[1, 0] + "\t|" + A4_4[1, 1] + "\t|" + A4_4[1, 2] + "\t|" + A4_4[1, 3] + "\t||" + A4_4[1, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_4[2, 0] + "\t|" + A4_4[2, 1] + "\t|" + A4_4[2, 2] + "\t|" + A4_4[2, 3] + "\t||" + A4_4[2, 4] + "\t|");
+                    Console.WriteLine("\t|" + A4_4[3, 0] + "\t|" + A4_4[3, 1] + "\t|" + A4_4[3, 2] + "\t|" + A4_4[3, 3] + "\t||" + A4_4[3, 4] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A4_4[0, 4]);
+                    Console.WriteLine("x2 = " + A4_4[1, 4]);
+                    Console.WriteLine("x3 = " + A4_4[2, 4]);
+                    Console.WriteLine("x4 = " + A4_4[3, 4]);
+                }
+                else if (per == 5)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 5; b = 5;
+                    double[,] A5 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A5[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A5[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A5)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 6;
+                    double[,] A5_1 = new double[a, b];
+                    A5_1[0, 0] = A5[0, 0] / A5[0, 0];
+                    A5_1[0, 1] = A5[0, 1] / A5[0, 0];
+                    A5_1[0, 2] = A5[0, 2] / A5[0, 0];
+                    A5_1[0, 3] = A5[0, 3] / A5[0, 0];
+                    A5_1[0, 4] = A5[0, 4] / A5[0, 0];
+                    A5_1[0, 5] = B[0] / A5[0, 0];
+                    A5_1[1, 0] = (A5_1[0, 0] * (-A5[1, 0])) + A5[1, 0];
+                    A5_1[1, 1] = (A5_1[0, 1] * (-A5[1, 0])) + A5[1, 1];
+                    A5_1[1, 2] = (A5_1[0, 2] * (-A5[1, 0])) + A5[1, 2];
+                    A5_1[1, 3] = (A5_1[0, 3] * (-A5[1, 0])) + A5[1, 3];
+                    A5_1[1, 4] = (A5_1[0, 4] * (-A5[1, 0])) + A5[1, 4];
+                    A5_1[1, 5] = (A5_1[0, 5] * (-A5[1, 0])) + B[1];
+                    A5_1[2, 0] = (A5_1[0, 0] * (-A5[2, 0])) + A5[2, 0];
+                    A5_1[2, 1] = (A5_1[0, 1] * (-A5[2, 0])) + A5[2, 1];
+                    A5_1[2, 2] = (A5_1[0, 2] * (-A5[2, 0])) + A5[2, 2];
+                    A5_1[2, 3] = (A5_1[0, 3] * (-A5[2, 0])) + A5[2, 3];
+                    A5_1[2, 4] = (A5_1[0, 4] * (-A5[2, 0])) + A5[2, 4];
+                    A5_1[2, 5] = (A5_1[0, 5] * (-A5[2, 0])) + B[2];
+                    A5_1[3, 0] = (A5_1[0, 0] * (-A5[3, 0])) + A5[3, 0];
+                    A5_1[3, 1] = (A5_1[0, 1] * (-A5[3, 0])) + A5[3, 1];
+                    A5_1[3, 2] = (A5_1[0, 2] * (-A5[3, 0])) + A5[3, 2];
+                    A5_1[3, 3] = (A5_1[0, 3] * (-A5[3, 0])) + A5[3, 3];
+                    A5_1[3, 4] = (A5_1[0, 4] * (-A5[3, 0])) + A5[3, 4];
+                    A5_1[3, 5] = (A5_1[0, 5] * (-A5[3, 0])) + B[3];
+                    A5_1[4, 0] = (A5_1[0, 0] * (-A5[4, 0])) + A5[4, 0];
+                    A5_1[4, 1] = (A5_1[0, 1] * (-A5[4, 0])) + A5[4, 1];
+                    A5_1[4, 2] = (A5_1[0, 2] * (-A5[4, 0])) + A5[4, 2];
+                    A5_1[4, 3] = (A5_1[0, 3] * (-A5[4, 0])) + A5[4, 3];
+                    A5_1[4, 4] = (A5_1[0, 4] * (-A5[4, 0])) + A5[4, 4];
+                    A5_1[4, 5] = (A5_1[0, 5] * (-A5[4, 0])) + B[4];
+                    Console.WriteLine("\t|" + A5_1[0, 0] + "\t|" + A5_1[0, 1] + "\t|" + A5_1[0, 2] + "\t|" + A5_1[0, 3] + "\t|" + A5_1[0, 4] + "\t||" + A5_1[0, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_1[1, 0] + "\t|" + A5_1[1, 1] + "\t|" + A5_1[1, 2] + "\t|" + A5_1[1, 3] + "\t|" + A5_1[1, 4] + "\t||" + A5_1[1, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_1[2, 0] + "\t|" + A5_1[2, 1] + "\t|" + A5_1[2, 2] + "\t|" + A5_1[2, 3] + "\t|" + A5_1[2, 4] + "\t||" + A5_1[2, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_1[3, 0] + "\t|" + A5_1[3, 1] + "\t|" + A5_1[3, 2] + "\t|" + A5_1[3, 3] + "\t|" + A5_1[3, 4] + "\t||" + A5_1[3, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_1[4, 0] + "\t|" + A5_1[4, 1] + "\t|" + A5_1[4, 2] + "\t|" + A5_1[4, 3] + "\t|" + A5_1[4, 4] + "\t||" + A5_1[4, 5] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A5_2 = new double[a, b];
+                    A5_2[1, 0] = A5_1[1, 0] / A5_1[1, 1];
+                    A5_2[1, 1] = A5_1[1, 1] / A5_1[1, 1];
+                    A5_2[1, 2] = A5_1[1, 2] / A5_1[1, 1];
+                    A5_2[1, 3] = A5_1[1, 3] / A5_1[1, 1];
+                    A5_2[1, 4] = A5_1[1, 4] / A5_1[1, 1];
+                    A5_2[1, 5] = A5_1[1, 5] / A5_1[1, 1];
+                    A5_2[0, 0] = (A5_2[1, 0] * (-A5_1[0, 1])) + A5_1[0, 0];
+                    A5_2[0, 1] = (A5_2[1, 1] * (-A5_1[0, 1])) + A5_1[0, 1];
+                    A5_2[0, 2] = (A5_2[1, 2] * (-A5_1[0, 1])) + A5_1[0, 2];
+                    A5_2[0, 3] = (A5_2[1, 3] * (-A5_1[0, 1])) + A5_1[0, 3];
+                    A5_2[0, 4] = (A5_2[1, 4] * (-A5_1[0, 1])) + A5_1[0, 4];
+                    A5_2[0, 5] = (A5_2[1, 5] * (-A5_1[0, 1])) + A5_1[0, 5];
+                    A5_2[2, 0] = (A5_2[1, 0] * (-A5_1[2, 1])) + A5_1[2, 0];
+                    A5_2[2, 1] = (A5_2[1, 1] * (-A5_1[2, 1])) + A5_1[2, 1];
+                    A5_2[2, 2] = (A5_2[1, 2] * (-A5_1[2, 1])) + A5_1[2, 2];
+                    A5_2[2, 3] = (A5_2[1, 3] * (-A5_1[2, 1])) + A5_1[2, 3];
+                    A5_2[2, 4] = (A5_2[1, 4] * (-A5_1[2, 1])) + A5_1[2, 4];
+                    A5_2[2, 5] = (A5_2[1, 5] * (-A5_1[2, 1])) + A5_1[2, 5];
+                    A5_2[3, 0] = (A5_2[1, 0] * (-A5_1[3, 1])) + A5_1[3, 0];
+                    A5_2[3, 1] = (A5_2[1, 1] * (-A5_1[3, 1])) + A5_1[3, 1];
+                    A5_2[3, 2] = (A5_2[1, 2] * (-A5_1[3, 1])) + A5_1[3, 2];
+                    A5_2[3, 3] = (A5_2[1, 3] * (-A5_1[3, 1])) + A5_1[3, 3];
+                    A5_2[3, 4] = (A5_2[1, 4] * (-A5_1[3, 1])) + A5_1[3, 4];
+                    A5_2[3, 5] = (A5_2[1, 5] * (-A5_1[3, 1])) + A5_1[3, 5];
+                    A5_2[4, 0] = (A5_2[1, 0] * (-A5_1[4, 1])) + A5_1[4, 0];
+                    A5_2[4, 1] = (A5_2[1, 1] * (-A5_1[4, 1])) + A5_1[4, 1];
+                    A5_2[4, 2] = (A5_2[1, 2] * (-A5_1[4, 1])) + A5_1[4, 2];
+                    A5_2[4, 3] = (A5_2[1, 3] * (-A5_1[4, 1])) + A5_1[4, 3];
+                    A5_2[4, 4] = (A5_2[1, 4] * (-A5_1[4, 1])) + A5_1[4, 4];
+                    A5_2[4, 5] = (A5_2[1, 5] * (-A5_1[4, 1])) + A5_1[4, 5];
+                    Console.WriteLine("\t|" + A5_2[0, 0] + "\t|" + A5_2[0, 1] + "\t|" + A5_2[0, 2] + "\t|" + A5_2[0, 3] + "\t|" + A5_2[0, 4] + "\t||" + A5_2[0, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_2[1, 0] + "\t|" + A5_2[1, 1] + "\t|" + A5_2[1, 2] + "\t|" + A5_2[1, 3] + "\t|" + A5_2[1, 4] + "\t||" + A5_2[1, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_2[2, 0] + "\t|" + A5_2[2, 1] + "\t|" + A5_2[2, 2] + "\t|" + A5_2[2, 3] + "\t|" + A5_2[2, 4] + "\t||" + A5_2[2, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_2[3, 0] + "\t|" + A5_2[3, 1] + "\t|" + A5_2[3, 2] + "\t|" + A5_2[3, 3] + "\t|" + A5_2[3, 4] + "\t||" + A5_2[3, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_2[4, 0] + "\t|" + A5_2[4, 1] + "\t|" + A5_2[4, 2] + "\t|" + A5_2[4, 3] + "\t|" + A5_2[4, 4] + "\t||" + A5_2[4, 5] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A5_3 = new double[a, b];
+                    A5_3[2, 0] = A5_2[2, 0] / A5_2[2, 2];
+                    A5_3[2, 1] = A5_2[2, 1] / A5_2[2, 2];
+                    A5_3[2, 2] = A5_2[2, 2] / A5_2[2, 2];
+                    A5_3[2, 3] = A5_2[2, 3] / A5_2[2, 2];
+                    A5_3[2, 4] = A5_2[2, 4] / A5_2[2, 2];
+                    A5_3[2, 5] = A5_2[2, 5] / A5_2[2, 2];
+                    A5_3[0, 0] = (A5_3[2, 0] * (-A5_2[0, 2])) + A5_2[0, 0];
+                    A5_3[0, 1] = (A5_3[2, 1] * (-A5_2[0, 2])) + A5_2[0, 1];
+                    A5_3[0, 2] = (A5_3[2, 2] * (-A5_2[0, 2])) + A5_2[0, 2];
+                    A5_3[0, 3] = (A5_3[2, 3] * (-A5_2[0, 2])) + A5_2[0, 3];
+                    A5_3[0, 4] = (A5_3[2, 4] * (-A5_2[0, 2])) + A5_2[0, 4];
+                    A5_3[0, 5] = (A5_3[2, 5] * (-A5_2[0, 2])) + A5_2[0, 5];
+                    A5_3[1, 0] = (A5_3[2, 0] * (-A5_2[1, 2])) + A5_2[1, 0];
+                    A5_3[1, 1] = (A5_3[2, 1] * (-A5_2[1, 2])) + A5_2[1, 1];
+                    A5_3[1, 2] = (A5_3[2, 2] * (-A5_2[1, 2])) + A5_2[1, 2];
+                    A5_3[1, 3] = (A5_3[2, 3] * (-A5_2[1, 2])) + A5_2[1, 3];
+                    A5_3[1, 4] = (A5_3[2, 4] * (-A5_2[1, 2])) + A5_2[1, 4];
+                    A5_3[1, 5] = (A5_3[2, 5] * (-A5_2[1, 2])) + A5_2[1, 5];
+                    A5_3[3, 0] = (A5_3[2, 0] * (-A5_2[3, 2])) + A5_2[3, 0];
+                    A5_3[3, 1] = (A5_3[2, 1] * (-A5_2[3, 2])) + A5_2[3, 1];
+                    A5_3[3, 2] = (A5_3[2, 2] * (-A5_2[3, 2])) + A5_2[3, 2];
+                    A5_3[3, 3] = (A5_3[2, 3] * (-A5_2[3, 2])) + A5_2[3, 3];
+                    A5_3[3, 4] = (A5_3[2, 4] * (-A5_2[3, 2])) + A5_2[3, 4];
+                    A5_3[3, 5] = (A5_3[2, 5] * (-A5_2[3, 2])) + A5_2[3, 5];
+                    A5_3[4, 0] = (A5_3[2, 0] * (-A5_2[4, 2])) + A5_2[4, 0];
+                    A5_3[4, 1] = (A5_3[2, 1] * (-A5_2[4, 2])) + A5_2[4, 1];
+                    A5_3[4, 2] = (A5_3[2, 2] * (-A5_2[4, 2])) + A5_2[4, 2];
+                    A5_3[4, 3] = (A5_3[2, 3] * (-A5_2[4, 2])) + A5_2[4, 3];
+                    A5_3[4, 4] = (A5_3[2, 4] * (-A5_2[4, 2])) + A5_2[4, 4];
+                    A5_3[4, 5] = (A5_3[2, 5] * (-A5_2[4, 2])) + A5_2[4, 5];
+                    Console.WriteLine("\t|" + A5_3[0, 0] + "\t|" + A5_3[0, 1] + "\t|" + A5_3[0, 2] + "\t|" + A5_3[0, 3] + "\t|" + A5_3[0, 4] + "\t||" + A5_3[0, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_3[1, 0] + "\t|" + A5_3[1, 1] + "\t|" + A5_3[1, 2] + "\t|" + A5_3[1, 3] + "\t|" + A5_3[1, 4] + "\t||" + A5_3[1, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_3[2, 0] + "\t|" + A5_3[2, 1] + "\t|" + A5_3[2, 2] + "\t|" + A5_3[2, 3] + "\t|" + A5_3[2, 4] + "\t||" + A5_3[2, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_3[3, 0] + "\t|" + A5_3[3, 1] + "\t|" + A5_3[3, 2] + "\t|" + A5_3[3, 3] + "\t|" + A5_3[3, 4] + "\t||" + A5_3[3, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_3[4, 0] + "\t|" + A5_3[4, 1] + "\t|" + A5_3[4, 2] + "\t|" + A5_3[4, 3] + "\t|" + A5_3[4, 4] + "\t||" + A5_3[4, 5] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A5_4 = new double[a, b];
+                    A5_4[3, 0] = A5_3[3, 0] / A5_3[3, 3];
+                    A5_4[3, 1] = A5_3[3, 1] / A5_3[3, 3];
+                    A5_4[3, 2] = A5_3[3, 2] / A5_3[3, 3];
+                    A5_4[3, 3] = A5_3[3, 3] / A5_3[3, 3];
+                    A5_4[3, 4] = A5_3[3, 4] / A5_3[3, 3];
+                    A5_4[3, 5] = A5_3[3, 5] / A5_3[3, 3];
+                    A5_4[0, 0] = (A5_4[3, 0] * (-A5_3[0, 3])) + A5_3[0, 0];
+                    A5_4[0, 1] = (A5_4[3, 1] * (-A5_3[0, 3])) + A5_3[0, 1];
+                    A5_4[0, 2] = (A5_4[3, 2] * (-A5_3[0, 3])) + A5_3[0, 2];
+                    A5_4[0, 3] = (A5_4[3, 3] * (-A5_3[0, 3])) + A5_3[0, 3];
+                    A5_4[0, 4] = (A5_4[3, 4] * (-A5_3[0, 3])) + A5_3[0, 4];
+                    A5_4[0, 5] = (A5_4[3, 5] * (-A5_3[0, 3])) + A5_3[0, 5];
+                    A5_4[1, 0] = (A5_4[3, 0] * (-A5_3[1, 3])) + A5_3[1, 0];
+                    A5_4[1, 1] = (A5_4[3, 1] * (-A5_3[1, 3])) + A5_3[1, 1];
+                    A5_4[1, 2] = (A5_4[3, 2] * (-A5_3[1, 3])) + A5_3[1, 2];
+                    A5_4[1, 3] = (A5_4[3, 3] * (-A5_3[1, 3])) + A5_3[1, 3];
+                    A5_4[1, 4] = (A5_4[3, 4] * (-A5_3[1, 3])) + A5_3[1, 4];
+                    A5_4[1, 5] = (A5_4[3, 5] * (-A5_3[1, 3])) + A5_3[1, 5];
+                    A5_4[2, 0] = (A5_4[3, 0] * (-A5_3[2, 3])) + A5_3[2, 0];
+                    A5_4[2, 1] = (A5_4[3, 1] * (-A5_3[2, 3])) + A5_3[2, 1];
+                    A5_4[2, 2] = (A5_4[3, 2] * (-A5_3[2, 3])) + A5_3[2, 2];
+                    A5_4[2, 3] = (A5_4[3, 3] * (-A5_3[2, 3])) + A5_3[2, 3];
+                    A5_4[2, 4] = (A5_4[3, 4] * (-A5_3[2, 3])) + A5_3[2, 4];
+                    A5_4[2, 5] = (A5_4[3, 5] * (-A5_3[2, 3])) + A5_3[2, 5];
+                    A5_4[4, 0] = (A5_4[3, 0] * (-A5_3[4, 3])) + A5_3[1, 0];
+                    A5_4[4, 1] = (A5_4[3, 1] * (-A5_3[4, 3])) + A5_3[1, 1];
+                    A5_4[4, 2] = (A5_4[3, 2] * (-A5_3[4, 3])) + A5_3[1, 2];
+                    A5_4[4, 3] = (A5_4[3, 3] * (-A5_3[4, 3])) + A5_3[1, 3];
+                    A5_4[4, 4] = (A5_4[3, 4] * (-A5_3[4, 3])) + A5_3[1, 4];
+                    A5_4[4, 5] = (A5_4[3, 5] * (-A5_3[4, 3])) + A5_3[1, 5];
+                    Console.WriteLine("\t|" + A5_4[0, 0] + "\t|" + A5_4[0, 1] + "\t|" + A5_4[0, 2] + "\t|" + A5_4[0, 3] + "\t|" + A5_4[0, 4] + "\t||" + A5_4[0, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_4[1, 0] + "\t|" + A5_4[1, 1] + "\t|" + A5_4[1, 2] + "\t|" + A5_4[1, 3] + "\t|" + A5_4[1, 4] + "\t||" + A5_4[1, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_4[2, 0] + "\t|" + A5_4[2, 1] + "\t|" + A5_4[2, 2] + "\t|" + A5_4[2, 3] + "\t|" + A5_4[2, 4] + "\t||" + A5_4[2, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_4[3, 0] + "\t|" + A5_4[3, 1] + "\t|" + A5_4[3, 2] + "\t|" + A5_4[3, 3] + "\t|" + A5_4[3, 4] + "\t||" + A5_4[3, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_4[4, 0] + "\t|" + A5_4[4, 1] + "\t|" + A5_4[4, 2] + "\t|" + A5_4[4, 3] + "\t|" + A5_4[4, 4] + "\t||" + A5_4[4, 5] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 5 -------------");
+                    double[,] A5_5 = new double[a, b];
+                    A5_5[4, 0] = A5_4[4, 0] / A5_4[4, 4];
+                    A5_5[4, 1] = A5_4[4, 1] / A5_4[4, 4];
+                    A5_5[4, 2] = A5_4[4, 2] / A5_4[4, 4];
+                    A5_5[4, 3] = A5_4[4, 3] / A5_4[4, 4];
+                    A5_5[4, 4] = A5_4[4, 4] / A5_4[4, 4];
+                    A5_5[4, 5] = A5_4[4, 5] / A5_4[4, 4];
+                    A5_5[0, 0] = (A5_5[4, 0] * (-A5_4[0, 4])) + A5_4[0, 0];
+                    A5_5[0, 1] = (A5_5[4, 1] * (-A5_4[0, 4])) + A5_4[0, 1];
+                    A5_5[0, 2] = (A5_5[4, 2] * (-A5_4[0, 4])) + A5_4[0, 2];
+                    A5_5[0, 3] = (A5_5[4, 3] * (-A5_4[0, 4])) + A5_4[0, 3];
+                    A5_5[0, 4] = (A5_5[4, 4] * (-A5_4[0, 4])) + A5_4[0, 4];
+                    A5_5[0, 5] = (A5_5[4, 5] * (-A5_4[0, 4])) + A5_4[0, 5];
+                    A5_5[1, 0] = (A5_5[4, 0] * (-A5_4[1, 4])) + A5_4[1, 0];
+                    A5_5[1, 1] = (A5_5[4, 1] * (-A5_4[1, 4])) + A5_4[1, 1];
+                    A5_5[1, 2] = (A5_5[4, 2] * (-A5_4[1, 4])) + A5_4[1, 2];
+                    A5_5[1, 3] = (A5_5[4, 3] * (-A5_4[1, 4])) + A5_4[1, 3];
+                    A5_5[1, 4] = (A5_5[4, 4] * (-A5_4[1, 4])) + A5_4[1, 4];
+                    A5_5[1, 5] = (A5_5[4, 5] * (-A5_4[1, 4])) + A5_4[1, 5];
+                    A5_5[2, 0] = (A5_5[4, 0] * (-A5_4[2, 4])) + A5_4[2, 0];
+                    A5_5[2, 1] = (A5_5[4, 1] * (-A5_4[2, 4])) + A5_4[2, 1];
+                    A5_5[2, 2] = (A5_5[4, 2] * (-A5_4[2, 4])) + A5_4[2, 2];
+                    A5_5[2, 3] = (A5_5[4, 3] * (-A5_4[2, 4])) + A5_4[2, 3];
+                    A5_5[2, 4] = (A5_5[4, 4] * (-A5_4[2, 4])) + A5_4[2, 4];
+                    A5_5[2, 5] = (A5_5[4, 5] * (-A5_4[2, 4])) + A5_4[2, 5];
+                    A5_5[3, 0] = (A5_5[4, 0] * (-A5_4[3, 4])) + A5_4[3, 0];
+                    A5_5[3, 1] = (A5_5[4, 1] * (-A5_4[3, 4])) + A5_4[3, 1];
+                    A5_5[3, 2] = (A5_5[4, 2] * (-A5_4[3, 4])) + A5_4[3, 2];
+                    A5_5[3, 3] = (A5_5[4, 3] * (-A5_4[3, 4])) + A5_4[3, 3];
+                    A5_5[3, 4] = (A5_5[4, 4] * (-A5_4[3, 4])) + A5_4[3, 4];
+                    A5_5[3, 5] = (A5_5[4, 5] * (-A5_4[3, 4])) + A5_4[3, 5];
+                    Console.WriteLine("\t|" + A5_5[0, 0] + "\t|" + A5_5[0, 1] + "\t|" + A5_5[0, 2] + "\t|" + A5_5[0, 3] + "\t|" + A5_5[0, 4] + "\t||" + A5_5[0, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_5[1, 0] + "\t|" + A5_5[1, 1] + "\t|" + A5_5[1, 2] + "\t|" + A5_5[1, 3] + "\t|" + A5_5[1, 4] + "\t||" + A5_5[1, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_5[2, 0] + "\t|" + A5_5[2, 1] + "\t|" + A5_5[2, 2] + "\t|" + A5_5[2, 3] + "\t|" + A5_5[2, 4] + "\t||" + A5_5[2, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_5[3, 0] + "\t|" + A5_5[3, 1] + "\t|" + A5_5[3, 2] + "\t|" + A5_5[3, 3] + "\t|" + A5_5[3, 4] + "\t||" + A5_5[3, 5] + "\t|");
+                    Console.WriteLine("\t|" + A5_5[4, 0] + "\t|" + A5_5[4, 1] + "\t|" + A5_5[4, 2] + "\t|" + A5_5[4, 3] + "\t|" + A5_5[4, 4] + "\t||" + A5_5[4, 5] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A5_5[0, 5]);
+                    Console.WriteLine("x2 = " + A5_5[1, 5]);
+                    Console.WriteLine("x3 = " + A5_5[2, 5]);
+                    Console.WriteLine("x4 = " + A5_5[3, 5]);
+                    Console.WriteLine("x5 = " + A5_5[4, 5]);
+                }
+                else if (per == 6)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 6; b = 6;
+                    double[,] A6 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A6[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A6[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A6)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 7;
+                    double[,] A6_1 = new double[a, b];
+                    A6_1[0, 0] = A6[0, 0] / A6[0, 0];
+                    A6_1[0, 1] = A6[0, 1] / A6[0, 0];
+                    A6_1[0, 2] = A6[0, 2] / A6[0, 0];
+                    A6_1[0, 3] = A6[0, 3] / A6[0, 0];
+                    A6_1[0, 4] = A6[0, 4] / A6[0, 0];
+                    A6_1[0, 5] = A6[0, 5] / A6[0, 0];
+                    A6_1[0, 6] = B[0] / A6[0, 0];
+                    A6_1[1, 0] = (A6_1[0, 0] * (-A6[1, 0])) + A6[1, 0];
+                    A6_1[1, 1] = (A6_1[0, 1] * (-A6[1, 0])) + A6[1, 1];
+                    A6_1[1, 2] = (A6_1[0, 2] * (-A6[1, 0])) + A6[1, 2];
+                    A6_1[1, 3] = (A6_1[0, 3] * (-A6[1, 0])) + A6[1, 3];
+                    A6_1[1, 4] = (A6_1[0, 4] * (-A6[1, 0])) + A6[1, 4];
+                    A6_1[1, 5] = (A6_1[0, 5] * (-A6[1, 0])) + A6[1, 5];
+                    A6_1[1, 6] = (A6_1[0, 6] * (-A6[1, 0])) + B[1];
+                    A6_1[2, 0] = (A6_1[0, 0] * (-A6[2, 0])) + A6[2, 0];
+                    A6_1[2, 1] = (A6_1[0, 1] * (-A6[2, 0])) + A6[2, 1];
+                    A6_1[2, 2] = (A6_1[0, 2] * (-A6[2, 0])) + A6[2, 2];
+                    A6_1[2, 3] = (A6_1[0, 3] * (-A6[2, 0])) + A6[2, 3];
+                    A6_1[2, 4] = (A6_1[0, 4] * (-A6[2, 0])) + A6[2, 4];
+                    A6_1[2, 5] = (A6_1[0, 5] * (-A6[2, 0])) + A6[2, 5];
+                    A6_1[2, 6] = (A6_1[0, 6] * (-A6[2, 0])) + B[2];
+                    A6_1[3, 0] = (A6_1[0, 0] * (-A6[3, 0])) + A6[3, 0];
+                    A6_1[3, 1] = (A6_1[0, 1] * (-A6[3, 0])) + A6[3, 1];
+                    A6_1[3, 2] = (A6_1[0, 2] * (-A6[3, 0])) + A6[3, 2];
+                    A6_1[3, 3] = (A6_1[0, 3] * (-A6[3, 0])) + A6[3, 3];
+                    A6_1[3, 4] = (A6_1[0, 4] * (-A6[3, 0])) + A6[3, 4];
+                    A6_1[3, 5] = (A6_1[0, 5] * (-A6[3, 0])) + A6[3, 5];
+                    A6_1[3, 6] = (A6_1[0, 6] * (-A6[3, 0])) + B[3];
+                    A6_1[4, 0] = (A6_1[0, 0] * (-A6[4, 0])) + A6[4, 0];
+                    A6_1[4, 1] = (A6_1[0, 1] * (-A6[4, 0])) + A6[4, 1];
+                    A6_1[4, 2] = (A6_1[0, 2] * (-A6[4, 0])) + A6[4, 2];
+                    A6_1[4, 3] = (A6_1[0, 3] * (-A6[4, 0])) + A6[4, 3];
+                    A6_1[4, 4] = (A6_1[0, 4] * (-A6[4, 0])) + A6[4, 4];
+                    A6_1[4, 5] = (A6_1[0, 5] * (-A6[4, 0])) + A6[4, 5];
+                    A6_1[4, 6] = (A6_1[0, 6] * (-A6[4, 0])) + B[4];
+                    A6_1[5, 0] = (A6_1[0, 0] * (-A6[5, 0])) + A6[5, 0];
+                    A6_1[5, 1] = (A6_1[0, 1] * (-A6[5, 0])) + A6[5, 1];
+                    A6_1[5, 2] = (A6_1[0, 2] * (-A6[5, 0])) + A6[5, 2];
+                    A6_1[5, 3] = (A6_1[0, 3] * (-A6[5, 0])) + A6[5, 3];
+                    A6_1[5, 4] = (A6_1[0, 4] * (-A6[5, 0])) + A6[5, 4];
+                    A6_1[5, 5] = (A6_1[0, 5] * (-A6[5, 0])) + A6[5, 5];
+                    A6_1[5, 6] = (A6_1[0, 6] * (-A6[5, 0])) + B[5];
+                    Console.WriteLine("\t|" + A6_1[0, 0] + "\t|" + A6_1[0, 1] + "\t|" + A6_1[0, 2] + "\t|" + A6_1[0, 3] + "\t|" + A6_1[0, 4] + "\t|" + A6_1[0, 5] + "\t||" + A6_1[0, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_1[1, 0] + "\t|" + A6_1[1, 1] + "\t|" + A6_1[1, 2] + "\t|" + A6_1[1, 3] + "\t|" + A6_1[1, 4] + "\t|" + A6_1[1, 5] + "\t||" + A6_1[1, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_1[2, 0] + "\t|" + A6_1[2, 1] + "\t|" + A6_1[2, 2] + "\t|" + A6_1[2, 3] + "\t|" + A6_1[2, 4] + "\t|" + A6_1[2, 5] + "\t||" + A6_1[2, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_1[3, 0] + "\t|" + A6_1[3, 1] + "\t|" + A6_1[3, 2] + "\t|" + A6_1[3, 3] + "\t|" + A6_1[3, 4] + "\t|" + A6_1[3, 5] + "\t||" + A6_1[3, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_1[4, 0] + "\t|" + A6_1[4, 1] + "\t|" + A6_1[4, 2] + "\t|" + A6_1[4, 3] + "\t|" + A6_1[4, 4] + "\t|" + A6_1[4, 5] + "\t||" + A6_1[4, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_1[5, 0] + "\t|" + A6_1[5, 1] + "\t|" + A6_1[5, 2] + "\t|" + A6_1[5, 3] + "\t|" + A6_1[5, 4] + "\t|" + A6_1[5, 5] + "\t||" + A6_1[5, 6] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A6_2 = new double[a, b];
+                    A6_2[1, 0] = A6_1[1, 0] / A6_1[1, 1];
+                    A6_2[1, 1] = A6_1[1, 1] / A6_1[1, 1];
+                    A6_2[1, 2] = A6_1[1, 2] / A6_1[1, 1];
+                    A6_2[1, 3] = A6_1[1, 3] / A6_1[1, 1];
+                    A6_2[1, 4] = A6_1[1, 4] / A6_1[1, 1];
+                    A6_2[1, 5] = A6_1[1, 5] / A6_1[1, 1];
+                    A6_2[1, 6] = A6_1[1, 6] / A6_1[1, 1];
+                    A6_2[0, 0] = (A6_2[1, 0] * (-A6_1[0, 1])) + A6_1[0, 0];
+                    A6_2[0, 1] = (A6_2[1, 1] * (-A6_1[0, 1])) + A6_1[0, 1];
+                    A6_2[0, 2] = (A6_2[1, 2] * (-A6_1[0, 1])) + A6_1[0, 2];
+                    A6_2[0, 3] = (A6_2[1, 3] * (-A6_1[0, 1])) + A6_1[0, 3];
+                    A6_2[0, 4] = (A6_2[1, 4] * (-A6_1[0, 1])) + A6_1[0, 4];
+                    A6_2[0, 5] = (A6_2[1, 5] * (-A6_1[0, 1])) + A6_1[0, 5];
+                    A6_2[0, 6] = (A6_2[1, 6] * (-A6_1[0, 1])) + A6_1[0, 6];
+                    A6_2[2, 0] = (A6_2[1, 0] * (-A6_1[2, 1])) + A6_1[2, 0];
+                    A6_2[2, 1] = (A6_2[1, 1] * (-A6_1[2, 1])) + A6_1[2, 1];
+                    A6_2[2, 2] = (A6_2[1, 2] * (-A6_1[2, 1])) + A6_1[2, 2];
+                    A6_2[2, 3] = (A6_2[1, 3] * (-A6_1[2, 1])) + A6_1[2, 3];
+                    A6_2[2, 4] = (A6_2[1, 4] * (-A6_1[2, 1])) + A6_1[2, 4];
+                    A6_2[2, 5] = (A6_2[1, 5] * (-A6_1[2, 1])) + A6_1[2, 5];
+                    A6_2[2, 6] = (A6_2[1, 6] * (-A6_1[2, 1])) + A6_1[2, 6];
+                    A6_2[3, 0] = (A6_2[1, 0] * (-A6_1[3, 1])) + A6_1[3, 0];
+                    A6_2[3, 1] = (A6_2[1, 1] * (-A6_1[3, 1])) + A6_1[3, 1];
+                    A6_2[3, 2] = (A6_2[1, 2] * (-A6_1[3, 1])) + A6_1[3, 2];
+                    A6_2[3, 3] = (A6_2[1, 3] * (-A6_1[3, 1])) + A6_1[3, 3];
+                    A6_2[3, 4] = (A6_2[1, 4] * (-A6_1[3, 1])) + A6_1[3, 4];
+                    A6_2[3, 5] = (A6_2[1, 5] * (-A6_1[3, 1])) + A6_1[3, 5];
+                    A6_2[3, 6] = (A6_2[1, 6] * (-A6_1[3, 1])) + A6_1[3, 6];
+                    A6_2[4, 0] = (A6_2[1, 0] * (-A6_1[4, 1])) + A6_1[4, 0];
+                    A6_2[4, 1] = (A6_2[1, 1] * (-A6_1[4, 1])) + A6_1[4, 1];
+                    A6_2[4, 2] = (A6_2[1, 2] * (-A6_1[4, 1])) + A6_1[4, 2];
+                    A6_2[4, 3] = (A6_2[1, 3] * (-A6_1[4, 1])) + A6_1[4, 3];
+                    A6_2[4, 4] = (A6_2[1, 4] * (-A6_1[4, 1])) + A6_1[4, 4];
+                    A6_2[4, 5] = (A6_2[1, 5] * (-A6_1[4, 1])) + A6_1[4, 5];
+                    A6_2[4, 6] = (A6_2[1, 6] * (-A6_1[4, 1])) + A6_1[4, 6];
+                    A6_2[5, 0] = (A6_2[1, 0] * (-A6_1[5, 1])) + A6_1[5, 0];
+                    A6_2[5, 1] = (A6_2[1, 1] * (-A6_1[5, 1])) + A6_1[5, 1];
+                    A6_2[5, 2] = (A6_2[1, 2] * (-A6_1[5, 1])) + A6_1[5, 2];
+                    A6_2[5, 3] = (A6_2[1, 3] * (-A6_1[5, 1])) + A6_1[5, 3];
+                    A6_2[5, 4] = (A6_2[1, 4] * (-A6_1[5, 1])) + A6_1[5, 4];
+                    A6_2[5, 5] = (A6_2[1, 5] * (-A6_1[5, 1])) + A6_1[5, 5];
+                    A6_2[5, 6] = (A6_2[1, 6] * (-A6_1[5, 1])) + A6_1[5, 6];
+                    Console.WriteLine("\t|" + A6_2[0, 0] + "\t|" + A6_2[0, 1] + "\t|" + A6_2[0, 2] + "\t|" + A6_2[0, 3] + "\t|" + A6_2[0, 4] + "\t|" + A6_2[0, 5] + "\t||" + A6_2[0, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_2[1, 0] + "\t|" + A6_2[1, 1] + "\t|" + A6_2[1, 2] + "\t|" + A6_2[1, 3] + "\t|" + A6_2[1, 4] + "\t|" + A6_2[1, 5] + "\t||" + A6_2[1, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_2[2, 0] + "\t|" + A6_2[2, 1] + "\t|" + A6_2[2, 2] + "\t|" + A6_2[2, 3] + "\t|" + A6_2[2, 4] + "\t|" + A6_2[2, 5] + "\t||" + A6_2[2, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_2[3, 0] + "\t|" + A6_2[3, 1] + "\t|" + A6_2[3, 2] + "\t|" + A6_2[3, 3] + "\t|" + A6_2[3, 4] + "\t|" + A6_2[3, 5] + "\t||" + A6_2[3, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_2[4, 0] + "\t|" + A6_2[4, 1] + "\t|" + A6_2[4, 2] + "\t|" + A6_2[4, 3] + "\t|" + A6_2[4, 4] + "\t|" + A6_2[4, 5] + "\t||" + A6_2[4, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_2[5, 0] + "\t|" + A6_2[5, 1] + "\t|" + A6_2[5, 2] + "\t|" + A6_2[5, 3] + "\t|" + A6_2[5, 4] + "\t|" + A6_2[5, 5] + "\t||" + A6_2[5, 6] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A6_3 = new double[a, b];
+                    A6_3[2, 0] = A6_2[2, 0] / A6_2[2, 2];
+                    A6_3[2, 1] = A6_2[2, 1] / A6_2[2, 2];
+                    A6_3[2, 2] = A6_2[2, 2] / A6_2[2, 2];
+                    A6_3[2, 3] = A6_2[2, 3] / A6_2[2, 2];
+                    A6_3[2, 4] = A6_2[2, 4] / A6_2[2, 2];
+                    A6_3[2, 5] = A6_2[2, 5] / A6_2[2, 2];
+                    A6_3[2, 6] = A6_2[2, 6] / A6_2[2, 2];
+                    A6_3[0, 0] = (A6_3[2, 0] * (-A6_2[0, 2])) + A6_2[0, 0];
+                    A6_3[0, 1] = (A6_3[2, 1] * (-A6_2[0, 2])) + A6_2[0, 1];
+                    A6_3[0, 2] = (A6_3[2, 2] * (-A6_2[0, 2])) + A6_2[0, 2];
+                    A6_3[0, 3] = (A6_3[2, 3] * (-A6_2[0, 2])) + A6_2[0, 3];
+                    A6_3[0, 4] = (A6_3[2, 4] * (-A6_2[0, 2])) + A6_2[0, 4];
+                    A6_3[0, 5] = (A6_3[2, 5] * (-A6_2[0, 2])) + A6_2[0, 5];
+                    A6_3[0, 6] = (A6_3[2, 6] * (-A6_2[0, 2])) + A6_2[0, 6];
+                    A6_3[1, 0] = (A6_3[2, 0] * (-A6_2[1, 2])) + A6_2[1, 0];
+                    A6_3[1, 1] = (A6_3[2, 1] * (-A6_2[1, 2])) + A6_2[1, 1];
+                    A6_3[1, 2] = (A6_3[2, 2] * (-A6_2[1, 2])) + A6_2[1, 2];
+                    A6_3[1, 3] = (A6_3[2, 3] * (-A6_2[1, 2])) + A6_2[1, 3];
+                    A6_3[1, 4] = (A6_3[2, 4] * (-A6_2[1, 2])) + A6_2[1, 4];
+                    A6_3[1, 5] = (A6_3[2, 5] * (-A6_2[1, 2])) + A6_2[1, 5];
+                    A6_3[1, 6] = (A6_3[2, 6] * (-A6_2[1, 2])) + A6_2[1, 6];
+                    A6_3[3, 0] = (A6_3[2, 0] * (-A6_2[3, 2])) + A6_2[3, 0];
+                    A6_3[3, 1] = (A6_3[2, 1] * (-A6_2[3, 2])) + A6_2[3, 1];
+                    A6_3[3, 2] = (A6_3[2, 2] * (-A6_2[3, 2])) + A6_2[3, 2];
+                    A6_3[3, 3] = (A6_3[2, 3] * (-A6_2[3, 2])) + A6_2[3, 3];
+                    A6_3[3, 4] = (A6_3[2, 4] * (-A6_2[3, 2])) + A6_2[3, 4];
+                    A6_3[3, 5] = (A6_3[2, 5] * (-A6_2[3, 2])) + A6_2[3, 5];
+                    A6_3[3, 6] = (A6_3[2, 6] * (-A6_2[3, 2])) + A6_2[3, 6];
+                    A6_3[4, 0] = (A6_3[2, 0] * (-A6_2[4, 2])) + A6_2[4, 0];
+                    A6_3[4, 1] = (A6_3[2, 1] * (-A6_2[4, 2])) + A6_2[4, 1];
+                    A6_3[4, 2] = (A6_3[2, 2] * (-A6_2[4, 2])) + A6_2[4, 2];
+                    A6_3[4, 3] = (A6_3[2, 3] * (-A6_2[4, 2])) + A6_2[4, 3];
+                    A6_3[4, 4] = (A6_3[2, 4] * (-A6_2[4, 2])) + A6_2[4, 4];
+                    A6_3[4, 5] = (A6_3[2, 5] * (-A6_2[4, 2])) + A6_2[4, 5];
+                    A6_3[4, 6] = (A6_3[2, 6] * (-A6_2[4, 2])) + A6_2[4, 6];
+                    A6_3[5, 0] = (A6_3[2, 0] * (-A6_2[5, 2])) + A6_2[5, 0];
+                    A6_3[5, 1] = (A6_3[2, 1] * (-A6_2[5, 2])) + A6_2[5, 1];
+                    A6_3[5, 2] = (A6_3[2, 2] * (-A6_2[5, 2])) + A6_2[5, 2];
+                    A6_3[5, 3] = (A6_3[2, 3] * (-A6_2[5, 2])) + A6_2[5, 3];
+                    A6_3[5, 4] = (A6_3[2, 4] * (-A6_2[5, 2])) + A6_2[5, 4];
+                    A6_3[5, 5] = (A6_3[2, 5] * (-A6_2[5, 2])) + A6_2[5, 5];
+                    A6_3[5, 6] = (A6_3[2, 6] * (-A6_2[5, 2])) + A6_2[5, 6];
+                    Console.WriteLine("\t|" + A6_3[0, 0] + "\t|" + A6_3[0, 1] + "\t|" + A6_3[0, 2] + "\t|" + A6_3[0, 3] + "\t|" + A6_3[0, 4] + "\t|" + A6_3[0, 5] + "\t||" + A6_3[0, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_3[1, 0] + "\t|" + A6_3[1, 1] + "\t|" + A6_3[1, 2] + "\t|" + A6_3[1, 3] + "\t|" + A6_3[1, 4] + "\t|" + A6_3[1, 5] + "\t||" + A6_3[1, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_3[2, 0] + "\t|" + A6_3[2, 1] + "\t|" + A6_3[2, 2] + "\t|" + A6_3[2, 3] + "\t|" + A6_3[2, 4] + "\t|" + A6_3[2, 5] + "\t||" + A6_3[2, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_3[3, 0] + "\t|" + A6_3[3, 1] + "\t|" + A6_3[3, 2] + "\t|" + A6_3[3, 3] + "\t|" + A6_3[3, 4] + "\t|" + A6_3[3, 5] + "\t||" + A6_3[3, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_3[4, 0] + "\t|" + A6_3[4, 1] + "\t|" + A6_3[4, 2] + "\t|" + A6_3[4, 3] + "\t|" + A6_3[4, 4] + "\t|" + A6_3[4, 5] + "\t||" + A6_3[4, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_3[5, 0] + "\t|" + A6_3[5, 1] + "\t|" + A6_3[5, 2] + "\t|" + A6_3[5, 3] + "\t|" + A6_3[5, 4] + "\t|" + A6_3[5, 5] + "\t||" + A6_3[5, 6] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A6_4 = new double[a, b];
+                    A6_4[3, 0] = A6_3[3, 0] / A6_3[3, 3];
+                    A6_4[3, 1] = A6_3[3, 1] / A6_3[3, 3];
+                    A6_4[3, 2] = A6_3[3, 2] / A6_3[3, 3];
+                    A6_4[3, 3] = A6_3[3, 3] / A6_3[3, 3];
+                    A6_4[3, 4] = A6_3[3, 4] / A6_3[3, 3];
+                    A6_4[3, 5] = A6_3[3, 5] / A6_3[3, 3];
+                    A6_4[3, 6] = A6_3[3, 6] / A6_3[3, 3];
+                    A6_4[0, 0] = (A6_4[3, 0] * (-A6_3[0, 3])) + A6_3[0, 0];
+                    A6_4[0, 1] = (A6_4[3, 1] * (-A6_3[0, 3])) + A6_3[0, 1];
+                    A6_4[0, 2] = (A6_4[3, 2] * (-A6_3[0, 3])) + A6_3[0, 2];
+                    A6_4[0, 3] = (A6_4[3, 3] * (-A6_3[0, 3])) + A6_3[0, 3];
+                    A6_4[0, 4] = (A6_4[3, 4] * (-A6_3[0, 3])) + A6_3[0, 4];
+                    A6_4[0, 5] = (A6_4[3, 5] * (-A6_3[0, 3])) + A6_3[0, 5];
+                    A6_4[0, 6] = (A6_4[3, 6] * (-A6_3[0, 3])) + A6_3[0, 6];
+                    A6_4[1, 0] = (A6_4[3, 0] * (-A6_3[1, 3])) + A6_3[1, 0];
+                    A6_4[1, 1] = (A6_4[3, 1] * (-A6_3[1, 3])) + A6_3[1, 1];
+                    A6_4[1, 2] = (A6_4[3, 2] * (-A6_3[1, 3])) + A6_3[1, 2];
+                    A6_4[1, 3] = (A6_4[3, 3] * (-A6_3[1, 3])) + A6_3[1, 3];
+                    A6_4[1, 4] = (A6_4[3, 4] * (-A6_3[1, 3])) + A6_3[1, 4];
+                    A6_4[1, 5] = (A6_4[3, 5] * (-A6_3[1, 3])) + A6_3[1, 5];
+                    A6_4[1, 6] = (A6_4[3, 6] * (-A6_3[1, 3])) + A6_3[1, 6];
+                    A6_4[2, 0] = (A6_4[3, 0] * (-A6_3[2, 3])) + A6_3[2, 0];
+                    A6_4[2, 1] = (A6_4[3, 1] * (-A6_3[2, 3])) + A6_3[2, 1];
+                    A6_4[2, 2] = (A6_4[3, 2] * (-A6_3[2, 3])) + A6_3[2, 2];
+                    A6_4[2, 3] = (A6_4[3, 3] * (-A6_3[2, 3])) + A6_3[2, 3];
+                    A6_4[2, 4] = (A6_4[3, 4] * (-A6_3[2, 3])) + A6_3[2, 4];
+                    A6_4[2, 5] = (A6_4[3, 5] * (-A6_3[2, 3])) + A6_3[2, 5];
+                    A6_4[2, 6] = (A6_4[3, 6] * (-A6_3[2, 3])) + A6_3[2, 6];
+                    A6_4[4, 0] = (A6_4[3, 0] * (-A6_3[4, 3])) + A6_3[4, 0];
+                    A6_4[4, 1] = (A6_4[3, 1] * (-A6_3[4, 3])) + A6_3[4, 1];
+                    A6_4[4, 2] = (A6_4[3, 2] * (-A6_3[4, 3])) + A6_3[4, 2];
+                    A6_4[4, 3] = (A6_4[3, 3] * (-A6_3[4, 3])) + A6_3[4, 3];
+                    A6_4[4, 4] = (A6_4[3, 4] * (-A6_3[4, 3])) + A6_3[4, 4];
+                    A6_4[4, 5] = (A6_4[3, 5] * (-A6_3[4, 3])) + A6_3[4, 5];
+                    A6_4[4, 6] = (A6_4[3, 6] * (-A6_3[4, 3])) + A6_3[4, 6];
+                    A6_4[5, 0] = (A6_4[3, 0] * (-A6_3[5, 3])) + A6_3[5, 0];
+                    A6_4[5, 1] = (A6_4[3, 1] * (-A6_3[5, 3])) + A6_3[5, 1];
+                    A6_4[5, 2] = (A6_4[3, 2] * (-A6_3[5, 3])) + A6_3[5, 2];
+                    A6_4[5, 3] = (A6_4[3, 3] * (-A6_3[5, 3])) + A6_3[5, 3];
+                    A6_4[5, 4] = (A6_4[3, 4] * (-A6_3[5, 3])) + A6_3[5, 4];
+                    A6_4[5, 5] = (A6_4[3, 5] * (-A6_3[5, 3])) + A6_3[5, 5];
+                    A6_4[5, 6] = (A6_4[3, 6] * (-A6_3[5, 3])) + A6_3[5, 6];
+                    Console.WriteLine("\t|" + A6_4[0, 0] + "\t|" + A6_4[0, 1] + "\t|" + A6_4[0, 2] + "\t|" + A6_4[0, 3] + "\t|" + A6_4[0, 4] + "\t|" + A6_4[0, 5] + "\t||" + A6_4[0, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_4[1, 0] + "\t|" + A6_4[1, 1] + "\t|" + A6_4[1, 2] + "\t|" + A6_4[1, 3] + "\t|" + A6_4[1, 4] + "\t|" + A6_4[1, 5] + "\t||" + A6_4[1, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_4[2, 0] + "\t|" + A6_4[2, 1] + "\t|" + A6_4[2, 2] + "\t|" + A6_4[2, 3] + "\t|" + A6_4[2, 4] + "\t|" + A6_4[2, 5] + "\t||" + A6_4[2, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_4[3, 0] + "\t|" + A6_4[3, 1] + "\t|" + A6_4[3, 2] + "\t|" + A6_4[3, 3] + "\t|" + A6_4[3, 4] + "\t|" + A6_4[3, 5] + "\t||" + A6_4[3, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_4[4, 0] + "\t|" + A6_4[4, 1] + "\t|" + A6_4[4, 2] + "\t|" + A6_4[4, 3] + "\t|" + A6_4[4, 4] + "\t|" + A6_4[4, 5] + "\t||" + A6_4[4, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_4[5, 0] + "\t|" + A6_4[5, 1] + "\t|" + A6_4[5, 2] + "\t|" + A6_4[5, 3] + "\t|" + A6_4[5, 4] + "\t|" + A6_4[5, 5] + "\t||" + A6_4[5, 6] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 5 -------------");
+                    double[,] A6_5 = new double[a, b];
+                    A6_5[4, 0] = A6_4[4, 0] / A6_4[4, 4];
+                    A6_5[4, 1] = A6_4[4, 1] / A6_4[4, 4];
+                    A6_5[4, 2] = A6_4[4, 2] / A6_4[4, 4];
+                    A6_5[4, 3] = A6_4[4, 3] / A6_4[4, 4];
+                    A6_5[4, 4] = A6_4[4, 4] / A6_4[4, 4];
+                    A6_5[4, 5] = A6_4[4, 5] / A6_4[4, 4];
+                    A6_5[4, 6] = A6_4[4, 6] / A6_4[4, 4];
+                    A6_5[0, 0] = (A6_5[4, 0] * (-A6_4[0, 4])) + A6_4[0, 0];
+                    A6_5[0, 1] = (A6_5[4, 1] * (-A6_4[0, 4])) + A6_4[0, 1];
+                    A6_5[0, 2] = (A6_5[4, 2] * (-A6_4[0, 4])) + A6_4[0, 2];
+                    A6_5[0, 3] = (A6_5[4, 3] * (-A6_4[0, 4])) + A6_4[0, 3];
+                    A6_5[0, 4] = (A6_5[4, 4] * (-A6_4[0, 4])) + A6_4[0, 4];
+                    A6_5[0, 5] = (A6_5[4, 5] * (-A6_4[0, 4])) + A6_4[0, 5];
+                    A6_5[0, 6] = (A6_5[4, 6] * (-A6_4[0, 4])) + A6_4[0, 6];
+                    A6_5[1, 0] = (A6_5[4, 0] * (-A6_4[1, 4])) + A6_4[1, 0];
+                    A6_5[1, 1] = (A6_5[4, 1] * (-A6_4[1, 4])) + A6_4[1, 1];
+                    A6_5[1, 2] = (A6_5[4, 2] * (-A6_4[1, 4])) + A6_4[1, 2];
+                    A6_5[1, 3] = (A6_5[4, 3] * (-A6_4[1, 4])) + A6_4[1, 3];
+                    A6_5[1, 4] = (A6_5[4, 4] * (-A6_4[1, 4])) + A6_4[1, 4];
+                    A6_5[1, 5] = (A6_5[4, 5] * (-A6_4[1, 4])) + A6_4[1, 5];
+                    A6_5[1, 6] = (A6_5[4, 6] * (-A6_4[1, 4])) + A6_4[1, 6];
+                    A6_5[2, 0] = (A6_5[4, 0] * (-A6_4[2, 4])) + A6_4[2, 0];
+                    A6_5[2, 1] = (A6_5[4, 1] * (-A6_4[2, 4])) + A6_4[2, 1];
+                    A6_5[2, 2] = (A6_5[4, 2] * (-A6_4[2, 4])) + A6_4[2, 2];
+                    A6_5[2, 3] = (A6_5[4, 3] * (-A6_4[2, 4])) + A6_4[2, 3];
+                    A6_5[2, 4] = (A6_5[4, 4] * (-A6_4[2, 4])) + A6_4[2, 4];
+                    A6_5[2, 5] = (A6_5[4, 5] * (-A6_4[2, 4])) + A6_4[2, 5];
+                    A6_5[2, 6] = (A6_5[4, 6] * (-A6_4[2, 4])) + A6_4[2, 6];
+                    A6_5[3, 0] = (A6_5[4, 0] * (-A6_4[3, 4])) + A6_4[3, 0];
+                    A6_5[3, 1] = (A6_5[4, 1] * (-A6_4[3, 4])) + A6_4[3, 1];
+                    A6_5[3, 2] = (A6_5[4, 2] * (-A6_4[3, 4])) + A6_4[3, 2];
+                    A6_5[3, 3] = (A6_5[4, 3] * (-A6_4[3, 4])) + A6_4[3, 3];
+                    A6_5[3, 4] = (A6_5[4, 4] * (-A6_4[3, 4])) + A6_4[3, 4];
+                    A6_5[3, 5] = (A6_5[4, 5] * (-A6_4[3, 4])) + A6_4[3, 5];
+                    A6_5[3, 6] = (A6_5[4, 6] * (-A6_4[3, 4])) + A6_4[3, 6];
+                    A6_5[5, 0] = (A6_5[4, 0] * (-A6_4[5, 4])) + A6_4[5, 0];
+                    A6_5[5, 1] = (A6_5[4, 1] * (-A6_4[5, 4])) + A6_4[5, 1];
+                    A6_5[5, 2] = (A6_5[4, 2] * (-A6_4[5, 4])) + A6_4[5, 2];
+                    A6_5[5, 3] = (A6_5[4, 3] * (-A6_4[5, 4])) + A6_4[5, 3];
+                    A6_5[5, 4] = (A6_5[4, 4] * (-A6_4[5, 4])) + A6_4[5, 4];
+                    A6_5[5, 5] = (A6_5[4, 5] * (-A6_4[5, 4])) + A6_4[5, 5];
+                    A6_5[5, 6] = (A6_5[4, 6] * (-A6_4[5, 4])) + A6_4[5, 6];
+                    Console.WriteLine("\t|" + A6_5[0, 0] + "\t|" + A6_5[0, 1] + "\t|" + A6_5[0, 2] + "\t|" + A6_5[0, 3] + "\t|" + A6_5[0, 4] + "\t|" + A6_5[0, 5] + "\t||" + A6_5[0, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_5[1, 0] + "\t|" + A6_5[1, 1] + "\t|" + A6_5[1, 2] + "\t|" + A6_5[1, 3] + "\t|" + A6_5[1, 4] + "\t|" + A6_5[1, 5] + "\t||" + A6_5[1, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_5[2, 0] + "\t|" + A6_5[2, 1] + "\t|" + A6_5[2, 2] + "\t|" + A6_5[2, 3] + "\t|" + A6_5[2, 4] + "\t|" + A6_5[2, 5] + "\t||" + A6_5[2, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_5[3, 0] + "\t|" + A6_5[3, 1] + "\t|" + A6_5[3, 2] + "\t|" + A6_5[3, 3] + "\t|" + A6_5[3, 4] + "\t|" + A6_5[3, 5] + "\t||" + A6_5[3, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_5[4, 0] + "\t|" + A6_5[4, 1] + "\t|" + A6_5[4, 2] + "\t|" + A6_5[4, 3] + "\t|" + A6_5[4, 4] + "\t|" + A6_5[4, 5] + "\t||" + A6_5[4, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_5[5, 0] + "\t|" + A6_5[5, 1] + "\t|" + A6_5[5, 2] + "\t|" + A6_5[5, 3] + "\t|" + A6_5[5, 4] + "\t|" + A6_5[5, 5] + "\t||" + A6_5[5, 6] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 6 -------------");
+                    double[,] A6_6 = new double[a, b];
+                    A6_6[5, 0] = A6_5[5, 0] / A6_5[5, 5];
+                    A6_6[5, 1] = A6_5[5, 1] / A6_5[5, 5];
+                    A6_6[5, 2] = A6_5[5, 2] / A6_5[5, 5];
+                    A6_6[5, 3] = A6_5[5, 3] / A6_5[5, 5];
+                    A6_6[5, 4] = A6_5[5, 4] / A6_5[5, 5];
+                    A6_6[5, 5] = A6_5[5, 5] / A6_5[5, 5];
+                    A6_6[5, 6] = A6_5[5, 6] / A6_5[5, 5];
+                    A6_6[0, 0] = (A6_6[5, 0] * (-A6_5[0, 5])) + A6_5[0, 0];
+                    A6_6[0, 1] = (A6_6[5, 1] * (-A6_5[0, 5])) + A6_5[0, 1];
+                    A6_6[0, 2] = (A6_6[5, 2] * (-A6_5[0, 5])) + A6_5[0, 2];
+                    A6_6[0, 3] = (A6_6[5, 3] * (-A6_5[0, 5])) + A6_5[0, 3];
+                    A6_6[0, 4] = (A6_6[5, 4] * (-A6_5[0, 5])) + A6_5[0, 4];
+                    A6_6[0, 5] = (A6_6[5, 5] * (-A6_5[0, 5])) + A6_5[0, 5];
+                    A6_6[0, 6] = (A6_6[5, 6] * (-A6_5[0, 5])) + A6_5[0, 6];
+                    A6_6[1, 0] = (A6_6[5, 0] * (-A6_5[1, 5])) + A6_5[1, 0];
+                    A6_6[1, 1] = (A6_6[5, 1] * (-A6_5[1, 5])) + A6_5[1, 1];
+                    A6_6[1, 2] = (A6_6[5, 2] * (-A6_5[1, 5])) + A6_5[1, 2];
+                    A6_6[1, 3] = (A6_6[5, 3] * (-A6_5[1, 5])) + A6_5[1, 3];
+                    A6_6[1, 4] = (A6_6[5, 4] * (-A6_5[1, 5])) + A6_5[1, 4];
+                    A6_6[1, 5] = (A6_6[5, 5] * (-A6_5[1, 5])) + A6_5[1, 5];
+                    A6_6[1, 6] = (A6_6[5, 6] * (-A6_5[1, 5])) + A6_5[1, 6];
+                    A6_6[2, 0] = (A6_6[5, 0] * (-A6_5[2, 5])) + A6_5[2, 0];
+                    A6_6[2, 1] = (A6_6[5, 1] * (-A6_5[2, 5])) + A6_5[2, 1];
+                    A6_6[2, 2] = (A6_6[5, 2] * (-A6_5[2, 5])) + A6_5[2, 2];
+                    A6_6[2, 3] = (A6_6[5, 3] * (-A6_5[2, 5])) + A6_5[2, 3];
+                    A6_6[2, 4] = (A6_6[5, 4] * (-A6_5[2, 5])) + A6_5[2, 4];
+                    A6_6[2, 5] = (A6_6[5, 5] * (-A6_5[2, 5])) + A6_5[2, 5];
+                    A6_6[2, 6] = (A6_6[5, 6] * (-A6_5[2, 5])) + A6_5[2, 6];
+                    A6_6[3, 0] = (A6_6[5, 0] * (-A6_5[3, 5])) + A6_5[3, 0];
+                    A6_6[3, 1] = (A6_6[5, 1] * (-A6_5[3, 5])) + A6_5[3, 1];
+                    A6_6[3, 2] = (A6_6[5, 2] * (-A6_5[3, 5])) + A6_5[3, 2];
+                    A6_6[3, 3] = (A6_6[5, 3] * (-A6_5[3, 5])) + A6_5[3, 3];
+                    A6_6[3, 4] = (A6_6[5, 4] * (-A6_5[3, 5])) + A6_5[3, 4];
+                    A6_6[3, 5] = (A6_6[5, 5] * (-A6_5[3, 5])) + A6_5[3, 5];
+                    A6_6[3, 6] = (A6_6[5, 6] * (-A6_5[3, 5])) + A6_5[3, 6];
+                    A6_6[4, 0] = (A6_6[5, 0] * (-A6_5[4, 5])) + A6_5[4, 0];
+                    A6_6[4, 1] = (A6_6[5, 1] * (-A6_5[4, 5])) + A6_5[4, 1];
+                    A6_6[4, 2] = (A6_6[5, 2] * (-A6_5[4, 5])) + A6_5[4, 2];
+                    A6_6[4, 3] = (A6_6[5, 3] * (-A6_5[4, 5])) + A6_5[4, 3];
+                    A6_6[4, 4] = (A6_6[5, 4] * (-A6_5[4, 5])) + A6_5[4, 4];
+                    A6_6[4, 5] = (A6_6[5, 5] * (-A6_5[4, 5])) + A6_5[4, 5];
+                    A6_6[4, 6] = (A6_6[5, 6] * (-A6_5[4, 5])) + A6_5[4, 6];
+                    Console.WriteLine("\t|" + A6_6[0, 0] + "\t|" + A6_6[0, 1] + "\t|" + A6_6[0, 2] + "\t|" + A6_6[0, 3] + "\t|" + A6_6[0, 4] + "\t|" + A6_6[0, 5] + "\t||" + A6_6[0, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_6[1, 0] + "\t|" + A6_6[1, 1] + "\t|" + A6_6[1, 2] + "\t|" + A6_6[1, 3] + "\t|" + A6_6[1, 4] + "\t|" + A6_6[1, 5] + "\t||" + A6_6[1, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_6[2, 0] + "\t|" + A6_6[2, 1] + "\t|" + A6_6[2, 2] + "\t|" + A6_6[2, 3] + "\t|" + A6_6[2, 4] + "\t|" + A6_6[2, 5] + "\t||" + A6_6[2, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_6[3, 0] + "\t|" + A6_6[3, 1] + "\t|" + A6_6[3, 2] + "\t|" + A6_6[3, 3] + "\t|" + A6_6[3, 4] + "\t|" + A6_6[3, 5] + "\t||" + A6_6[3, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_6[4, 0] + "\t|" + A6_6[4, 1] + "\t|" + A6_6[4, 2] + "\t|" + A6_6[4, 3] + "\t|" + A6_6[4, 4] + "\t|" + A6_6[4, 5] + "\t||" + A6_6[4, 6] + "\t|");
+                    Console.WriteLine("\t|" + A6_6[5, 0] + "\t|" + A6_6[5, 1] + "\t|" + A6_6[5, 2] + "\t|" + A6_6[5, 3] + "\t|" + A6_6[5, 4] + "\t|" + A6_6[5, 5] + "\t||" + A6_6[5, 6] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A6_6[0, 6]);
+                    Console.WriteLine("x2 = " + A6_6[1, 6]);
+                    Console.WriteLine("x3 = " + A6_6[2, 6]);
+                    Console.WriteLine("x4 = " + A6_6[3, 6]);
+                    Console.WriteLine("x5 = " + A6_6[4, 6]);
+                    Console.WriteLine("x6 = " + A6_6[5, 6]);
+                }
+                else if (per == 7)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 7; b = 7;
+                    double[,] A7 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A7[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A7[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A7)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 8;
+                    double[,] A7_1 = new double[a, b];
+                    A7_1[0, 0] = A7[0, 0] / A7[0, 0];
+                    A7_1[0, 1] = A7[0, 1] / A7[0, 0];
+                    A7_1[0, 2] = A7[0, 2] / A7[0, 0]; 
+                    A7_1[0, 3] = A7[0, 3] / A7[0, 0];
+                    A7_1[0, 4] = A7[0, 4] / A7[0, 0];
+                    A7_1[0, 5] = A7[0, 5] / A7[0, 0];
+                    A7_1[0, 6] = A7[0, 6] / A7[0, 0];
+                    A7_1[0, 7] = B[0] / A7[0, 0];
+                    A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
+                    A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
+                    A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
+                    A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
+                    A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
+                    A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
+                    A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
+                    A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
+                    A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
+                    A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
+                    A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
+                    A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
+                    A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
+                    A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
+                    A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
+                    A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
+                    A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
+                    A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
+                    A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
+                    A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
+                    A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
+                    A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
+                    A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
+                    A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
+                    A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
+                    A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
+                    A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
+                    A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
+                    A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
+                    A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
+                    A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
+                    A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
+                    A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
+                    A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
+                    A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
+                    A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
+                    A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
+                    A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
+                    A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
+                    A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
+                    A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
+                    A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
+                    A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
+                    A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
+                    A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
+                    A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
+                    A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
+                    A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
+                    Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A7_2 = new double[a, b];
+                    A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
+                    A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
+                    A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
+                    A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
+                    A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
+                    A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
+                    A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
+                    A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
+                    A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
+                    A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
+                    A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
+                    A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
+                    A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
+                    A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
+                    A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
+                    A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
+                    A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
+                    A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
+                    A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
+                    A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
+                    A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
+                    A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
+                    A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
+                    A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
+                    A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
+                    A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
+                    A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
+                    A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
+                    A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
+                    A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
+                    A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
+                    A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
+                    A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
+                    A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
+                    A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
+                    A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
+                    A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
+                    A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
+                    A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
+                    A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
+                    A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
+                    A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
+                    A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
+                    A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
+                    A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
+                    A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
+                    A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
+                    A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
+                    A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
+                    A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
+                    A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
+                    A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
+                    A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
+                    A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
+                    A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
+                    A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
+                    Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A7_3 = new double[a, b];
+                    A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
+                    A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
+                    A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
+                    A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
+                    A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
+                    A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
+                    A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
+                    A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
+                    A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
+                    A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
+                    A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
+                    A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
+                    A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
+                    A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
+                    A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
+                    A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
+                    A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
+                    A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
+                    A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
+                    A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
+                    A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
+                    A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
+                    A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
+                    A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
+                    A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
+                    A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
+                    A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
+                    A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
+                    A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
+                    A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
+                    A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
+                    A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
+                    A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
+                    A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
+                    A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
+                    A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
+                    A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
+                    A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
+                    A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
+                    A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
+                    A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
+                    A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
+                    A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
+                    A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
+                    A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
+                    A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
+                    A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
+                    A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
+                    A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
+                    A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
+                    A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
+                    A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
+                    A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
+                    A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
+                    A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
+                    A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
+                    Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A7_4 = new double[a, b];
+                    A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
+                    A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
+                    A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
+                    A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
+                    A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
+                    A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
+                    A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
+                    A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
+                    A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
+                    A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
+                    A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
+                    A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
+                    A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
+                    A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
+                    A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
+                    A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
+                    A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
+                    A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
+                    A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
+                    A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
+                    A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
+                    A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
+                    A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
+                    A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
+                    A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
+                    A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
+                    A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
+                    A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
+                    A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
+                    A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
+                    A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
+                    A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
+                    A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
+                    A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
+                    A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
+                    A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
+                    A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
+                    A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
+                    A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
+                    A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
+                    A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
+                    A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
+                    A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
+                    A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
+                    A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
+                    A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
+                    A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
+                    A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
+                    A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
+                    A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
+                    A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
+                    A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
+                    A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
+                    A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
+                    A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
+                    A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
+                    Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 5 -------------");
+                    double[,] A7_5 = new double[a, b];
+                    A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
+                    A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
+                    A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
+                    A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
+                    A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
+                    A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
+                    A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
+                    A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
+                    A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
+                    A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
+                    A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
+                    A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
+                    A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
+                    A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
+                    A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
+                    A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
+                    A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
+                    A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
+                    A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
+                    A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
+                    A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
+                    A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
+                    A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
+                    A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
+                    A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
+                    A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
+                    A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
+                    A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
+                    A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
+                    A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
+                    A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
+                    A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
+                    A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
+                    A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
+                    A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
+                    A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
+                    A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
+                    A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
+                    A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
+                    A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
+                    A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
+                    A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
+                    A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
+                    A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
+                    A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
+                    A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
+                    A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
+                    A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
+                    A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
+                    A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
+                    A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
+                    A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
+                    A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
+                    A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
+                    A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
+                    A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
+                    Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 6 -------------");
+                    double[,] A7_6 = new double[a, b];
+                    A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
+                    A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
+                    A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
+                    A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
+                    A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
+                    A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
+                    A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
+                    A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
+                    A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
+                    A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
+                    A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
+                    A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
+                    A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
+                    A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
+                    A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
+                    A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
+                    A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
+                    A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
+                    A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
+                    A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
+                    A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
+                    A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
+                    A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
+                    A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
+                    A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
+                    A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
+                    A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
+                    A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
+                    A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
+                    A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
+                    A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
+                    A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
+                    A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
+                    A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
+                    A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
+                    A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
+                    A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
+                    A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
+                    A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
+                    A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
+                    A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
+                    A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
+                    A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
+                    A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
+                    A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
+                    A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
+                    A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
+                    A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
+                    A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
+                    A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
+                    A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
+                    A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
+                    A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
+                    A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
+                    A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
+                    A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
+                    Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 7 -------------");
+                    double[,] A7_7 = new double[a, b];
+                    A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
+                    A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
+                    A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
+                    A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
+                    A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
+                    A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
+                    A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
+                    A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
+                    A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
+                    A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
+                    A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
+                    A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
+                    A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
+                    A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
+                    A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
+                    A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
+                    A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
+                    A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
+                    A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
+                    A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
+                    A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
+                    A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
+                    A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
+                    A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
+                    A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
+                    A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
+                    A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
+                    A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
+                    A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
+                    A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
+                    A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
+                    A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
+                    A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
+                    A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
+                    A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
+                    A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
+                    A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
+                    A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
+                    A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
+                    A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
+                    A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
+                    A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
+                    A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
+                    A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
+                    A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
+                    A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
+                    A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
+                    A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
+                    A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
+                    A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
+                    A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
+                    A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
+                    A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
+                    A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
+                    A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
+                    A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
+                    Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A7_7[0, 7]);
+                    Console.WriteLine("x2 = " + A7_7[1, 7]);
+                    Console.WriteLine("x3 = " + A7_7[2, 7]);
+                    Console.WriteLine("x4 = " + A7_7[3, 7]);
+                    Console.WriteLine("x5 = " + A7_7[4, 7]);
+                    Console.WriteLine("x6 = " + A7_7[5, 7]);
+                    Console.WriteLine("x7 = " + A7_7[6, 7]);
+                }
+                else if (per == 8)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 7; b = 7;
+                    double[,] A7 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A7[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A7[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A7)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 8;
+                    double[,] A7_1 = new double[a, b];
+                    A7_1[0, 0] = A7[0, 0] / A7[0, 0];
+                    A7_1[0, 1] = A7[0, 1] / A7[0, 0];
+                    A7_1[0, 2] = A7[0, 2] / A7[0, 0];
+                    A7_1[0, 3] = A7[0, 3] / A7[0, 0];
+                    A7_1[0, 4] = A7[0, 4] / A7[0, 0];
+                    A7_1[0, 5] = A7[0, 5] / A7[0, 0];
+                    A7_1[0, 6] = A7[0, 6] / A7[0, 0];
+                    A7_1[0, 7] = B[0] / A7[0, 0];
+                    A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
+                    A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
+                    A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
+                    A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
+                    A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
+                    A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
+                    A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
+                    A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
+                    A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
+                    A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
+                    A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
+                    A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
+                    A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
+                    A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
+                    A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
+                    A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
+                    A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
+                    A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
+                    A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
+                    A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
+                    A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
+                    A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
+                    A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
+                    A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
+                    A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
+                    A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
+                    A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
+                    A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
+                    A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
+                    A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
+                    A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
+                    A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
+                    A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
+                    A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
+                    A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
+                    A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
+                    A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
+                    A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
+                    A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
+                    A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
+                    A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
+                    A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
+                    A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
+                    A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
+                    A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
+                    A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
+                    A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
+                    A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
+                    Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A7_2 = new double[a, b];
+                    A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
+                    A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
+                    A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
+                    A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
+                    A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
+                    A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
+                    A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
+                    A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
+                    A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
+                    A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
+                    A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
+                    A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
+                    A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
+                    A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
+                    A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
+                    A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
+                    A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
+                    A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
+                    A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
+                    A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
+                    A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
+                    A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
+                    A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
+                    A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
+                    A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
+                    A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
+                    A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
+                    A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
+                    A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
+                    A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
+                    A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
+                    A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
+                    A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
+                    A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
+                    A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
+                    A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
+                    A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
+                    A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
+                    A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
+                    A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
+                    A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
+                    A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
+                    A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
+                    A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
+                    A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
+                    A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
+                    A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
+                    A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
+                    A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
+                    A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
+                    A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
+                    A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
+                    A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
+                    A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
+                    A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
+                    A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
+                    Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A7_3 = new double[a, b];
+                    A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
+                    A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
+                    A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
+                    A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
+                    A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
+                    A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
+                    A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
+                    A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
+                    A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
+                    A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
+                    A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
+                    A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
+                    A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
+                    A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
+                    A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
+                    A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
+                    A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
+                    A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
+                    A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
+                    A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
+                    A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
+                    A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
+                    A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
+                    A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
+                    A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
+                    A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
+                    A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
+                    A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
+                    A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
+                    A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
+                    A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
+                    A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
+                    A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
+                    A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
+                    A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
+                    A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
+                    A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
+                    A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
+                    A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
+                    A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
+                    A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
+                    A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
+                    A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
+                    A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
+                    A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
+                    A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
+                    A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
+                    A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
+                    A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
+                    A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
+                    A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
+                    A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
+                    A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
+                    A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
+                    A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
+                    A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
+                    Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A7_4 = new double[a, b];
+                    A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
+                    A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
+                    A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
+                    A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
+                    A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
+                    A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
+                    A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
+                    A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
+                    A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
+                    A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
+                    A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
+                    A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
+                    A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
+                    A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
+                    A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
+                    A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
+                    A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
+                    A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
+                    A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
+                    A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
+                    A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
+                    A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
+                    A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
+                    A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
+                    A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
+                    A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
+                    A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
+                    A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
+                    A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
+                    A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
+                    A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
+                    A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
+                    A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
+                    A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
+                    A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
+                    A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
+                    A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
+                    A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
+                    A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
+                    A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
+                    A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
+                    A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
+                    A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
+                    A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
+                    A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
+                    A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
+                    A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
+                    A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
+                    A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
+                    A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
+                    A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
+                    A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
+                    A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
+                    A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
+                    A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
+                    A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
+                    Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 5 -------------");
+                    double[,] A7_5 = new double[a, b];
+                    A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
+                    A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
+                    A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
+                    A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
+                    A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
+                    A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
+                    A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
+                    A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
+                    A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
+                    A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
+                    A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
+                    A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
+                    A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
+                    A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
+                    A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
+                    A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
+                    A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
+                    A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
+                    A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
+                    A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
+                    A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
+                    A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
+                    A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
+                    A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
+                    A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
+                    A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
+                    A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
+                    A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
+                    A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
+                    A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
+                    A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
+                    A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
+                    A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
+                    A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
+                    A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
+                    A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
+                    A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
+                    A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
+                    A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
+                    A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
+                    A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
+                    A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
+                    A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
+                    A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
+                    A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
+                    A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
+                    A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
+                    A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
+                    A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
+                    A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
+                    A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
+                    A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
+                    A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
+                    A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
+                    A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
+                    A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
+                    Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 6 -------------");
+                    double[,] A7_6 = new double[a, b];
+                    A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
+                    A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
+                    A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
+                    A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
+                    A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
+                    A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
+                    A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
+                    A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
+                    A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
+                    A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
+                    A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
+                    A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
+                    A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
+                    A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
+                    A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
+                    A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
+                    A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
+                    A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
+                    A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
+                    A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
+                    A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
+                    A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
+                    A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
+                    A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
+                    A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
+                    A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
+                    A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
+                    A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
+                    A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
+                    A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
+                    A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
+                    A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
+                    A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
+                    A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
+                    A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
+                    A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
+                    A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
+                    A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
+                    A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
+                    A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
+                    A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
+                    A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
+                    A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
+                    A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
+                    A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
+                    A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
+                    A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
+                    A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
+                    A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
+                    A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
+                    A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
+                    A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
+                    A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
+                    A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
+                    A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
+                    A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
+                    Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 7 -------------");
+                    double[,] A7_7 = new double[a, b];
+                    A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
+                    A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
+                    A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
+                    A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
+                    A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
+                    A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
+                    A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
+                    A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
+                    A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
+                    A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
+                    A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
+                    A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
+                    A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
+                    A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
+                    A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
+                    A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
+                    A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
+                    A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
+                    A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
+                    A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
+                    A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
+                    A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
+                    A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
+                    A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
+                    A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
+                    A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
+                    A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
+                    A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
+                    A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
+                    A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
+                    A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
+                    A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
+                    A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
+                    A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
+                    A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
+                    A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
+                    A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
+                    A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
+                    A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
+                    A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
+                    A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
+                    A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
+                    A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
+                    A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
+                    A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
+                    A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
+                    A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
+                    A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
+                    A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
+                    A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
+                    A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
+                    A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
+                    A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
+                    A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
+                    A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
+                    A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
+                    Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A7_7[0, 7]);
+                    Console.WriteLine("x2 = " + A7_7[1, 7]);
+                    Console.WriteLine("x3 = " + A7_7[2, 7]);
+                    Console.WriteLine("x4 = " + A7_7[3, 7]);
+                    Console.WriteLine("x5 = " + A7_7[4, 7]);
+                    Console.WriteLine("x6 = " + A7_7[5, 7]);
+                    Console.WriteLine("x7 = " + A7_7[6, 7]);
+                }
+                else if (per == 9)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 7; b = 7;
+                    double[,] A7 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A7[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A7[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A7)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 8;
+                    double[,] A7_1 = new double[a, b];
+                    A7_1[0, 0] = A7[0, 0] / A7[0, 0];
+                    A7_1[0, 1] = A7[0, 1] / A7[0, 0];
+                    A7_1[0, 2] = A7[0, 2] / A7[0, 0];
+                    A7_1[0, 3] = A7[0, 3] / A7[0, 0];
+                    A7_1[0, 4] = A7[0, 4] / A7[0, 0];
+                    A7_1[0, 5] = A7[0, 5] / A7[0, 0];
+                    A7_1[0, 6] = A7[0, 6] / A7[0, 0];
+                    A7_1[0, 7] = B[0] / A7[0, 0];
+                    A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
+                    A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
+                    A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
+                    A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
+                    A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
+                    A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
+                    A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
+                    A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
+                    A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
+                    A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
+                    A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
+                    A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
+                    A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
+                    A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
+                    A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
+                    A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
+                    A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
+                    A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
+                    A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
+                    A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
+                    A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
+                    A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
+                    A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
+                    A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
+                    A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
+                    A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
+                    A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
+                    A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
+                    A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
+                    A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
+                    A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
+                    A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
+                    A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
+                    A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
+                    A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
+                    A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
+                    A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
+                    A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
+                    A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
+                    A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
+                    A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
+                    A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
+                    A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
+                    A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
+                    A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
+                    A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
+                    A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
+                    A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
+                    Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A7_2 = new double[a, b];
+                    A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
+                    A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
+                    A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
+                    A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
+                    A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
+                    A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
+                    A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
+                    A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
+                    A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
+                    A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
+                    A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
+                    A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
+                    A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
+                    A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
+                    A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
+                    A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
+                    A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
+                    A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
+                    A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
+                    A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
+                    A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
+                    A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
+                    A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
+                    A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
+                    A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
+                    A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
+                    A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
+                    A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
+                    A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
+                    A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
+                    A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
+                    A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
+                    A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
+                    A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
+                    A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
+                    A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
+                    A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
+                    A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
+                    A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
+                    A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
+                    A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
+                    A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
+                    A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
+                    A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
+                    A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
+                    A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
+                    A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
+                    A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
+                    A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
+                    A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
+                    A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
+                    A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
+                    A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
+                    A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
+                    A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
+                    A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
+                    Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A7_3 = new double[a, b];
+                    A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
+                    A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
+                    A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
+                    A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
+                    A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
+                    A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
+                    A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
+                    A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
+                    A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
+                    A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
+                    A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
+                    A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
+                    A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
+                    A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
+                    A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
+                    A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
+                    A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
+                    A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
+                    A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
+                    A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
+                    A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
+                    A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
+                    A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
+                    A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
+                    A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
+                    A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
+                    A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
+                    A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
+                    A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
+                    A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
+                    A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
+                    A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
+                    A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
+                    A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
+                    A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
+                    A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
+                    A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
+                    A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
+                    A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
+                    A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
+                    A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
+                    A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
+                    A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
+                    A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
+                    A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
+                    A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
+                    A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
+                    A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
+                    A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
+                    A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
+                    A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
+                    A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
+                    A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
+                    A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
+                    A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
+                    A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
+                    Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A7_4 = new double[a, b];
+                    A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
+                    A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
+                    A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
+                    A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
+                    A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
+                    A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
+                    A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
+                    A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
+                    A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
+                    A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
+                    A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
+                    A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
+                    A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
+                    A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
+                    A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
+                    A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
+                    A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
+                    A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
+                    A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
+                    A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
+                    A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
+                    A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
+                    A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
+                    A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
+                    A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
+                    A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
+                    A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
+                    A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
+                    A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
+                    A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
+                    A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
+                    A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
+                    A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
+                    A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
+                    A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
+                    A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
+                    A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
+                    A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
+                    A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
+                    A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
+                    A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
+                    A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
+                    A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
+                    A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
+                    A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
+                    A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
+                    A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
+                    A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
+                    A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
+                    A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
+                    A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
+                    A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
+                    A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
+                    A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
+                    A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
+                    A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
+                    Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 5 -------------");
+                    double[,] A7_5 = new double[a, b];
+                    A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
+                    A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
+                    A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
+                    A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
+                    A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
+                    A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
+                    A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
+                    A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
+                    A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
+                    A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
+                    A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
+                    A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
+                    A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
+                    A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
+                    A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
+                    A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
+                    A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
+                    A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
+                    A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
+                    A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
+                    A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
+                    A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
+                    A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
+                    A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
+                    A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
+                    A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
+                    A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
+                    A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
+                    A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
+                    A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
+                    A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
+                    A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
+                    A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
+                    A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
+                    A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
+                    A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
+                    A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
+                    A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
+                    A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
+                    A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
+                    A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
+                    A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
+                    A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
+                    A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
+                    A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
+                    A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
+                    A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
+                    A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
+                    A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
+                    A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
+                    A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
+                    A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
+                    A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
+                    A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
+                    A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
+                    A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
+                    Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 6 -------------");
+                    double[,] A7_6 = new double[a, b];
+                    A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
+                    A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
+                    A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
+                    A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
+                    A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
+                    A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
+                    A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
+                    A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
+                    A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
+                    A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
+                    A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
+                    A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
+                    A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
+                    A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
+                    A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
+                    A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
+                    A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
+                    A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
+                    A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
+                    A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
+                    A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
+                    A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
+                    A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
+                    A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
+                    A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
+                    A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
+                    A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
+                    A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
+                    A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
+                    A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
+                    A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
+                    A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
+                    A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
+                    A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
+                    A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
+                    A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
+                    A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
+                    A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
+                    A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
+                    A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
+                    A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
+                    A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
+                    A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
+                    A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
+                    A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
+                    A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
+                    A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
+                    A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
+                    A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
+                    A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
+                    A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
+                    A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
+                    A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
+                    A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
+                    A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
+                    A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
+                    Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 7 -------------");
+                    double[,] A7_7 = new double[a, b];
+                    A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
+                    A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
+                    A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
+                    A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
+                    A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
+                    A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
+                    A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
+                    A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
+                    A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
+                    A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
+                    A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
+                    A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
+                    A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
+                    A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
+                    A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
+                    A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
+                    A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
+                    A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
+                    A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
+                    A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
+                    A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
+                    A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
+                    A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
+                    A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
+                    A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
+                    A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
+                    A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
+                    A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
+                    A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
+                    A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
+                    A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
+                    A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
+                    A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
+                    A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
+                    A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
+                    A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
+                    A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
+                    A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
+                    A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
+                    A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
+                    A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
+                    A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
+                    A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
+                    A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
+                    A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
+                    A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
+                    A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
+                    A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
+                    A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
+                    A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
+                    A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
+                    A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
+                    A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
+                    A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
+                    A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
+                    A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
+                    Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A7_7[0, 7]);
+                    Console.WriteLine("x2 = " + A7_7[1, 7]);
+                    Console.WriteLine("x3 = " + A7_7[2, 7]);
+                    Console.WriteLine("x4 = " + A7_7[3, 7]);
+                    Console.WriteLine("x5 = " + A7_7[4, 7]);
+                    Console.WriteLine("x6 = " + A7_7[5, 7]);
+                    Console.WriteLine("x7 = " + A7_7[6, 7]);
+                }
+                else if (per == 10)
+                {
+                    Console.WriteLine("------------- Заполните матрицу А -------------");
+                    a = 7; b = 7;
+                    double[,] A7 = new double[a, b];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            A7[x1, x2] = int.Parse(Console.ReadLine());
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Заполните матрицу B -------------");
+                    B = new int[a];
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        B[x1] = int.Parse(Console.ReadLine());
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Вывод матрицы -------------");
+                    for (int x1 = 0; x1 < a; x1++)
+                    {
+                        for (int x2 = 0; x2 < b; x2++)
+                        {
+                            Console.Write(A7[x1, x2] + "\t|");
+                        }
+                        Console.WriteLine("|\t" + B[x1]);
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Подсчёт едениц в массиве -------------");
+                    int edin = 1;
+                    foreach (int edinicha in A7)
+                    {
+                        if (edinicha == edin)
+                        {
+                            Console.WriteLine(string.Format("Едениц в матрице '{0}'", edin));
+                        }
+                    }
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 1 -------------");
+                    b = 8;
+                    double[,] A7_1 = new double[a, b];
+                    A7_1[0, 0] = A7[0, 0] / A7[0, 0];
+                    A7_1[0, 1] = A7[0, 1] / A7[0, 0];
+                    A7_1[0, 2] = A7[0, 2] / A7[0, 0];
+                    A7_1[0, 3] = A7[0, 3] / A7[0, 0];
+                    A7_1[0, 4] = A7[0, 4] / A7[0, 0];
+                    A7_1[0, 5] = A7[0, 5] / A7[0, 0];
+                    A7_1[0, 6] = A7[0, 6] / A7[0, 0];
+                    A7_1[0, 7] = B[0] / A7[0, 0];
+                    A7_1[1, 0] = (A7_1[0, 0] * (-A7[1, 0])) + A7[1, 0];
+                    A7_1[1, 1] = (A7_1[0, 1] * (-A7[1, 0])) + A7[1, 1];
+                    A7_1[1, 2] = (A7_1[0, 2] * (-A7[1, 0])) + A7[1, 2];
+                    A7_1[1, 3] = (A7_1[0, 3] * (-A7[1, 0])) + A7[1, 3];
+                    A7_1[1, 4] = (A7_1[0, 4] * (-A7[1, 0])) + A7[1, 4];
+                    A7_1[1, 5] = (A7_1[0, 5] * (-A7[1, 0])) + A7[1, 5];
+                    A7_1[1, 6] = (A7_1[0, 6] * (-A7[1, 0])) + A7[1, 6];
+                    A7_1[1, 7] = (A7_1[0, 7] * (-A7[1, 0])) + B[1];
+                    A7_1[2, 0] = (A7_1[0, 0] * (-A7[2, 0])) + A7[2, 0];
+                    A7_1[2, 1] = (A7_1[0, 1] * (-A7[2, 0])) + A7[2, 1];
+                    A7_1[2, 2] = (A7_1[0, 2] * (-A7[2, 0])) + A7[2, 2];
+                    A7_1[2, 3] = (A7_1[0, 3] * (-A7[2, 0])) + A7[2, 3];
+                    A7_1[2, 4] = (A7_1[0, 4] * (-A7[2, 0])) + A7[2, 4];
+                    A7_1[2, 5] = (A7_1[0, 5] * (-A7[2, 0])) + A7[2, 5];
+                    A7_1[2, 6] = (A7_1[0, 6] * (-A7[2, 0])) + A7[2, 6];
+                    A7_1[2, 7] = (A7_1[0, 7] * (-A7[2, 0])) + B[2];
+                    A7_1[3, 0] = (A7_1[0, 0] * (-A7[3, 0])) + A7[3, 0];
+                    A7_1[3, 1] = (A7_1[0, 1] * (-A7[3, 0])) + A7[3, 1];
+                    A7_1[3, 2] = (A7_1[0, 2] * (-A7[3, 0])) + A7[3, 2];
+                    A7_1[3, 3] = (A7_1[0, 3] * (-A7[3, 0])) + A7[3, 3];
+                    A7_1[3, 4] = (A7_1[0, 4] * (-A7[3, 0])) + A7[3, 4];
+                    A7_1[3, 5] = (A7_1[0, 5] * (-A7[3, 0])) + A7[3, 5];
+                    A7_1[3, 6] = (A7_1[0, 6] * (-A7[3, 0])) + A7[3, 6];
+                    A7_1[3, 7] = (A7_1[0, 7] * (-A7[3, 0])) + B[3];
+                    A7_1[4, 0] = (A7_1[0, 0] * (-A7[4, 0])) + A7[4, 0];
+                    A7_1[4, 1] = (A7_1[0, 1] * (-A7[4, 0])) + A7[4, 1];
+                    A7_1[4, 2] = (A7_1[0, 2] * (-A7[4, 0])) + A7[4, 2];
+                    A7_1[4, 3] = (A7_1[0, 3] * (-A7[4, 0])) + A7[4, 3];
+                    A7_1[4, 4] = (A7_1[0, 4] * (-A7[4, 0])) + A7[4, 4];
+                    A7_1[4, 5] = (A7_1[0, 5] * (-A7[4, 0])) + A7[4, 5];
+                    A7_1[4, 6] = (A7_1[0, 6] * (-A7[4, 0])) + A7[4, 6];
+                    A7_1[4, 7] = (A7_1[0, 7] * (-A7[4, 0])) + B[4];
+                    A7_1[5, 0] = (A7_1[0, 0] * (-A7[5, 0])) + A7[5, 0];
+                    A7_1[5, 1] = (A7_1[0, 1] * (-A7[5, 0])) + A7[5, 1];
+                    A7_1[5, 2] = (A7_1[0, 2] * (-A7[5, 0])) + A7[5, 2];
+                    A7_1[5, 3] = (A7_1[0, 3] * (-A7[5, 0])) + A7[5, 3];
+                    A7_1[5, 4] = (A7_1[0, 4] * (-A7[5, 0])) + A7[5, 4];
+                    A7_1[5, 5] = (A7_1[0, 5] * (-A7[5, 0])) + A7[5, 5];
+                    A7_1[5, 6] = (A7_1[0, 6] * (-A7[5, 0])) + A7[5, 6];
+                    A7_1[5, 7] = (A7_1[0, 7] * (-A7[5, 0])) + B[5];
+                    A7_1[6, 0] = (A7_1[0, 0] * (-A7[6, 0])) + A7[6, 0];
+                    A7_1[6, 1] = (A7_1[0, 1] * (-A7[6, 0])) + A7[6, 1];
+                    A7_1[6, 2] = (A7_1[0, 2] * (-A7[6, 0])) + A7[6, 2];
+                    A7_1[6, 3] = (A7_1[0, 3] * (-A7[6, 0])) + A7[6, 3];
+                    A7_1[6, 4] = (A7_1[0, 4] * (-A7[6, 0])) + A7[6, 4];
+                    A7_1[6, 5] = (A7_1[0, 5] * (-A7[6, 0])) + A7[6, 5];
+                    A7_1[6, 6] = (A7_1[0, 6] * (-A7[6, 0])) + A7[6, 6];
+                    A7_1[6, 7] = (A7_1[0, 7] * (-A7[6, 0])) + B[6];
+                    Console.WriteLine("\t|" + A7_1[0, 0] + "\t|" + A7_1[0, 1] + "\t|" + A7_1[0, 2] + "\t|" + A7_1[0, 3] + "\t|" + A7_1[0, 4] + "\t|" + A7_1[0, 5] + "\t|" + A7_1[0, 6] + "\t||" + A7_1[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[1, 0] + "\t|" + A7_1[1, 1] + "\t|" + A7_1[1, 2] + "\t|" + A7_1[1, 3] + "\t|" + A7_1[1, 4] + "\t|" + A7_1[1, 5] + "\t|" + A7_1[1, 6] + "\t||" + A7_1[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[2, 0] + "\t|" + A7_1[2, 1] + "\t|" + A7_1[2, 2] + "\t|" + A7_1[2, 3] + "\t|" + A7_1[2, 4] + "\t|" + A7_1[2, 5] + "\t|" + A7_1[2, 6] + "\t||" + A7_1[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[3, 0] + "\t|" + A7_1[3, 1] + "\t|" + A7_1[3, 2] + "\t|" + A7_1[3, 3] + "\t|" + A7_1[3, 4] + "\t|" + A7_1[3, 5] + "\t|" + A7_1[3, 6] + "\t||" + A7_1[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[4, 0] + "\t|" + A7_1[4, 1] + "\t|" + A7_1[4, 2] + "\t|" + A7_1[4, 3] + "\t|" + A7_1[4, 4] + "\t|" + A7_1[4, 5] + "\t|" + A7_1[4, 6] + "\t||" + A7_1[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[5, 0] + "\t|" + A7_1[5, 1] + "\t|" + A7_1[5, 2] + "\t|" + A7_1[5, 3] + "\t|" + A7_1[5, 4] + "\t|" + A7_1[5, 5] + "\t|" + A7_1[5, 6] + "\t||" + A7_1[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_1[6, 0] + "\t|" + A7_1[6, 1] + "\t|" + A7_1[6, 2] + "\t|" + A7_1[6, 3] + "\t|" + A7_1[6, 4] + "\t|" + A7_1[6, 5] + "\t|" + A7_1[6, 6] + "\t||" + A7_1[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 2 -------------");
+                    double[,] A7_2 = new double[a, b];
+                    A7_2[1, 0] = A7_1[1, 0] / A7_1[1, 1];
+                    A7_2[1, 1] = A7_1[1, 1] / A7_1[1, 1];
+                    A7_2[1, 2] = A7_1[1, 2] / A7_1[1, 1];
+                    A7_2[1, 3] = A7_1[1, 3] / A7_1[1, 1];
+                    A7_2[1, 4] = A7_1[1, 4] / A7_1[1, 1];
+                    A7_2[1, 5] = A7_1[1, 5] / A7_1[1, 1];
+                    A7_2[1, 6] = A7_1[1, 6] / A7_1[1, 1];
+                    A7_2[1, 7] = A7_1[1, 7] / A7_1[1, 1];
+                    A7_2[0, 0] = (A7_2[1, 0] * (-A7_1[0, 1])) + A7_1[0, 0];
+                    A7_2[0, 1] = (A7_2[1, 1] * (-A7_1[0, 1])) + A7_1[0, 1];
+                    A7_2[0, 2] = (A7_2[1, 2] * (-A7_1[0, 1])) + A7_1[0, 2];
+                    A7_2[0, 3] = (A7_2[1, 3] * (-A7_1[0, 1])) + A7_1[0, 3];
+                    A7_2[0, 4] = (A7_2[1, 4] * (-A7_1[0, 1])) + A7_1[0, 4];
+                    A7_2[0, 5] = (A7_2[1, 5] * (-A7_1[0, 1])) + A7_1[0, 5];
+                    A7_2[0, 6] = (A7_2[1, 6] * (-A7_1[0, 1])) + A7_1[0, 6];
+                    A7_2[0, 7] = (A7_2[1, 7] * (-A7_1[0, 1])) + A7_1[0, 7];
+                    A7_2[2, 0] = (A7_2[1, 0] * (-A7_1[2, 1])) + A7_1[2, 0];
+                    A7_2[2, 1] = (A7_2[1, 1] * (-A7_1[2, 1])) + A7_1[2, 1];
+                    A7_2[2, 2] = (A7_2[1, 2] * (-A7_1[2, 1])) + A7_1[2, 2];
+                    A7_2[2, 3] = (A7_2[1, 3] * (-A7_1[2, 1])) + A7_1[2, 3];
+                    A7_2[2, 4] = (A7_2[1, 4] * (-A7_1[2, 1])) + A7_1[2, 4];
+                    A7_2[2, 5] = (A7_2[1, 5] * (-A7_1[2, 1])) + A7_1[2, 5];
+                    A7_2[2, 6] = (A7_2[1, 6] * (-A7_1[2, 1])) + A7_1[2, 6];
+                    A7_2[2, 7] = (A7_2[1, 7] * (-A7_1[2, 1])) + A7_1[2, 7];
+                    A7_2[3, 0] = (A7_2[1, 0] * (-A7_1[3, 1])) + A7_1[3, 0];
+                    A7_2[3, 1] = (A7_2[1, 1] * (-A7_1[3, 1])) + A7_1[3, 1];
+                    A7_2[3, 2] = (A7_2[1, 2] * (-A7_1[3, 1])) + A7_1[3, 2];
+                    A7_2[3, 3] = (A7_2[1, 3] * (-A7_1[3, 1])) + A7_1[3, 3];
+                    A7_2[3, 4] = (A7_2[1, 4] * (-A7_1[3, 1])) + A7_1[3, 4];
+                    A7_2[3, 5] = (A7_2[1, 5] * (-A7_1[3, 1])) + A7_1[3, 5];
+                    A7_2[3, 6] = (A7_2[1, 6] * (-A7_1[3, 1])) + A7_1[3, 6];
+                    A7_2[3, 7] = (A7_2[1, 7] * (-A7_1[3, 1])) + A7_1[3, 7];
+                    A7_2[4, 0] = (A7_2[1, 0] * (-A7_1[4, 1])) + A7_1[4, 0];
+                    A7_2[4, 1] = (A7_2[1, 1] * (-A7_1[4, 1])) + A7_1[4, 1];
+                    A7_2[4, 2] = (A7_2[1, 2] * (-A7_1[4, 1])) + A7_1[4, 2];
+                    A7_2[4, 3] = (A7_2[1, 3] * (-A7_1[4, 1])) + A7_1[4, 3];
+                    A7_2[4, 4] = (A7_2[1, 4] * (-A7_1[4, 1])) + A7_1[4, 4];
+                    A7_2[4, 5] = (A7_2[1, 5] * (-A7_1[4, 1])) + A7_1[4, 5];
+                    A7_2[4, 6] = (A7_2[1, 6] * (-A7_1[4, 1])) + A7_1[4, 6];
+                    A7_2[4, 7] = (A7_2[1, 7] * (-A7_1[4, 1])) + A7_1[4, 7];
+                    A7_2[5, 0] = (A7_2[1, 0] * (-A7_1[5, 1])) + A7_1[5, 0];
+                    A7_2[5, 1] = (A7_2[1, 1] * (-A7_1[5, 1])) + A7_1[5, 1];
+                    A7_2[5, 2] = (A7_2[1, 2] * (-A7_1[5, 1])) + A7_1[5, 2];
+                    A7_2[5, 3] = (A7_2[1, 3] * (-A7_1[5, 1])) + A7_1[5, 3];
+                    A7_2[5, 4] = (A7_2[1, 4] * (-A7_1[5, 1])) + A7_1[5, 4];
+                    A7_2[5, 5] = (A7_2[1, 5] * (-A7_1[5, 1])) + A7_1[5, 5];
+                    A7_2[5, 6] = (A7_2[1, 6] * (-A7_1[5, 1])) + A7_1[5, 6];
+                    A7_2[5, 7] = (A7_2[1, 7] * (-A7_1[5, 1])) + A7_1[5, 7];
+                    A7_2[6, 0] = (A7_2[1, 0] * (-A7_1[6, 1])) + A7_1[6, 0];
+                    A7_2[6, 1] = (A7_2[1, 1] * (-A7_1[6, 1])) + A7_1[6, 1];
+                    A7_2[6, 2] = (A7_2[1, 2] * (-A7_1[6, 1])) + A7_1[6, 2];
+                    A7_2[6, 3] = (A7_2[1, 3] * (-A7_1[6, 1])) + A7_1[6, 3];
+                    A7_2[6, 4] = (A7_2[1, 4] * (-A7_1[6, 1])) + A7_1[6, 4];
+                    A7_2[6, 5] = (A7_2[1, 5] * (-A7_1[6, 1])) + A7_1[6, 5];
+                    A7_2[6, 6] = (A7_2[1, 6] * (-A7_1[6, 1])) + A7_1[6, 6];
+                    A7_2[6, 7] = (A7_2[1, 7] * (-A7_1[6, 1])) + A7_1[6, 7];
+                    Console.WriteLine("\t|" + A7_2[0, 0] + "\t|" + A7_2[0, 1] + "\t|" + A7_2[0, 2] + "\t|" + A7_2[0, 3] + "\t|" + A7_2[0, 4] + "\t|" + A7_2[0, 5] + "\t|" + A7_2[0, 6] + "\t||" + A7_2[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[1, 0] + "\t|" + A7_2[1, 1] + "\t|" + A7_2[1, 2] + "\t|" + A7_2[1, 3] + "\t|" + A7_2[1, 4] + "\t|" + A7_2[1, 5] + "\t|" + A7_2[1, 6] + "\t||" + A7_2[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[2, 0] + "\t|" + A7_2[2, 1] + "\t|" + A7_2[2, 2] + "\t|" + A7_2[2, 3] + "\t|" + A7_2[2, 4] + "\t|" + A7_2[2, 5] + "\t|" + A7_2[2, 6] + "\t||" + A7_2[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[3, 0] + "\t|" + A7_2[3, 1] + "\t|" + A7_2[3, 2] + "\t|" + A7_2[3, 3] + "\t|" + A7_2[3, 4] + "\t|" + A7_2[3, 5] + "\t|" + A7_2[3, 6] + "\t||" + A7_2[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[4, 0] + "\t|" + A7_2[4, 1] + "\t|" + A7_2[4, 2] + "\t|" + A7_2[4, 3] + "\t|" + A7_2[4, 4] + "\t|" + A7_2[4, 5] + "\t|" + A7_2[4, 6] + "\t||" + A7_2[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[5, 0] + "\t|" + A7_2[5, 1] + "\t|" + A7_2[5, 2] + "\t|" + A7_2[5, 3] + "\t|" + A7_2[5, 4] + "\t|" + A7_2[5, 5] + "\t|" + A7_2[5, 6] + "\t||" + A7_2[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_2[6, 0] + "\t|" + A7_2[6, 1] + "\t|" + A7_2[6, 2] + "\t|" + A7_2[6, 3] + "\t|" + A7_2[6, 4] + "\t|" + A7_2[6, 5] + "\t|" + A7_2[6, 6] + "\t||" + A7_2[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 3 -------------");
+                    double[,] A7_3 = new double[a, b];
+                    A7_3[2, 0] = A7_2[2, 0] / A7_2[2, 2];
+                    A7_3[2, 1] = A7_2[2, 1] / A7_2[2, 2];
+                    A7_3[2, 2] = A7_2[2, 2] / A7_2[2, 2];
+                    A7_3[2, 3] = A7_2[2, 3] / A7_2[2, 2];
+                    A7_3[2, 4] = A7_2[2, 4] / A7_2[2, 2];
+                    A7_3[2, 5] = A7_2[2, 5] / A7_2[2, 2];
+                    A7_3[2, 6] = A7_2[2, 6] / A7_2[2, 2];
+                    A7_3[2, 7] = A7_2[2, 7] / A7_2[2, 2];
+                    A7_3[0, 0] = (A7_3[2, 0] * (-A7_2[0, 2])) + A7_2[0, 0];
+                    A7_3[0, 1] = (A7_3[2, 1] * (-A7_2[0, 2])) + A7_2[0, 1];
+                    A7_3[0, 2] = (A7_3[2, 2] * (-A7_2[0, 2])) + A7_2[0, 2];
+                    A7_3[0, 3] = (A7_3[2, 3] * (-A7_2[0, 2])) + A7_2[0, 3];
+                    A7_3[0, 4] = (A7_3[2, 4] * (-A7_2[0, 2])) + A7_2[0, 4];
+                    A7_3[0, 5] = (A7_3[2, 5] * (-A7_2[0, 2])) + A7_2[0, 5];
+                    A7_3[0, 6] = (A7_3[2, 6] * (-A7_2[0, 2])) + A7_2[0, 6];
+                    A7_3[0, 7] = (A7_3[2, 7] * (-A7_2[0, 2])) + A7_2[0, 7];
+                    A7_3[1, 0] = (A7_3[2, 0] * (-A7_2[1, 2])) + A7_2[1, 0];
+                    A7_3[1, 1] = (A7_3[2, 1] * (-A7_2[1, 2])) + A7_2[1, 1];
+                    A7_3[1, 2] = (A7_3[2, 2] * (-A7_2[1, 2])) + A7_2[1, 2];
+                    A7_3[1, 3] = (A7_3[2, 3] * (-A7_2[1, 2])) + A7_2[1, 3];
+                    A7_3[1, 4] = (A7_3[2, 4] * (-A7_2[1, 2])) + A7_2[1, 4];
+                    A7_3[1, 5] = (A7_3[2, 5] * (-A7_2[1, 2])) + A7_2[1, 5];
+                    A7_3[1, 6] = (A7_3[2, 6] * (-A7_2[1, 2])) + A7_2[1, 6];
+                    A7_3[1, 7] = (A7_3[2, 7] * (-A7_2[1, 2])) + A7_2[1, 7];
+                    A7_3[3, 0] = (A7_3[2, 0] * (-A7_2[3, 2])) + A7_2[3, 0];
+                    A7_3[3, 1] = (A7_3[2, 1] * (-A7_2[3, 2])) + A7_2[3, 1];
+                    A7_3[3, 2] = (A7_3[2, 2] * (-A7_2[3, 2])) + A7_2[3, 2];
+                    A7_3[3, 3] = (A7_3[2, 3] * (-A7_2[3, 2])) + A7_2[3, 3];
+                    A7_3[3, 4] = (A7_3[2, 4] * (-A7_2[3, 2])) + A7_2[3, 4];
+                    A7_3[3, 5] = (A7_3[2, 5] * (-A7_2[3, 2])) + A7_2[3, 5];
+                    A7_3[3, 6] = (A7_3[2, 6] * (-A7_2[3, 2])) + A7_2[3, 6];
+                    A7_3[3, 7] = (A7_3[2, 7] * (-A7_2[3, 2])) + A7_2[3, 7];
+                    A7_3[4, 0] = (A7_3[2, 0] * (-A7_2[4, 2])) + A7_2[4, 0];
+                    A7_3[4, 1] = (A7_3[2, 1] * (-A7_2[4, 2])) + A7_2[4, 1];
+                    A7_3[4, 2] = (A7_3[2, 2] * (-A7_2[4, 2])) + A7_2[4, 2];
+                    A7_3[4, 3] = (A7_3[2, 3] * (-A7_2[4, 2])) + A7_2[4, 3];
+                    A7_3[4, 4] = (A7_3[2, 4] * (-A7_2[4, 2])) + A7_2[4, 4];
+                    A7_3[4, 5] = (A7_3[2, 5] * (-A7_2[4, 2])) + A7_2[4, 5];
+                    A7_3[4, 6] = (A7_3[2, 6] * (-A7_2[4, 2])) + A7_2[4, 6];
+                    A7_3[4, 7] = (A7_3[2, 7] * (-A7_2[4, 2])) + A7_2[4, 7];
+                    A7_3[5, 0] = (A7_3[2, 0] * (-A7_2[5, 2])) + A7_2[5, 0];
+                    A7_3[5, 1] = (A7_3[2, 1] * (-A7_2[5, 2])) + A7_2[5, 1];
+                    A7_3[5, 2] = (A7_3[2, 2] * (-A7_2[5, 2])) + A7_2[5, 2];
+                    A7_3[5, 3] = (A7_3[2, 3] * (-A7_2[5, 2])) + A7_2[5, 3];
+                    A7_3[5, 4] = (A7_3[2, 4] * (-A7_2[5, 2])) + A7_2[5, 4];
+                    A7_3[5, 5] = (A7_3[2, 5] * (-A7_2[5, 2])) + A7_2[5, 5];
+                    A7_3[5, 6] = (A7_3[2, 6] * (-A7_2[5, 2])) + A7_2[5, 6];
+                    A7_3[5, 7] = (A7_3[2, 7] * (-A7_2[5, 2])) + A7_2[5, 7];
+                    A7_3[6, 0] = (A7_3[2, 0] * (-A7_2[6, 2])) + A7_2[6, 0];
+                    A7_3[6, 1] = (A7_3[2, 1] * (-A7_2[6, 2])) + A7_2[6, 1];
+                    A7_3[6, 2] = (A7_3[2, 2] * (-A7_2[6, 2])) + A7_2[6, 2];
+                    A7_3[6, 3] = (A7_3[2, 3] * (-A7_2[6, 2])) + A7_2[6, 3];
+                    A7_3[6, 4] = (A7_3[2, 4] * (-A7_2[6, 2])) + A7_2[6, 4];
+                    A7_3[6, 5] = (A7_3[2, 5] * (-A7_2[6, 2])) + A7_2[6, 5];
+                    A7_3[6, 6] = (A7_3[2, 6] * (-A7_2[6, 2])) + A7_2[6, 6];
+                    A7_3[6, 7] = (A7_3[2, 7] * (-A7_2[6, 2])) + A7_2[6, 7];
+                    Console.WriteLine("\t|" + A7_3[0, 0] + "\t|" + A7_3[0, 1] + "\t|" + A7_3[0, 2] + "\t|" + A7_3[0, 3] + "\t|" + A7_3[0, 4] + "\t|" + A7_3[0, 5] + "\t|" + A7_3[0, 6] + "\t||" + A7_3[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[1, 0] + "\t|" + A7_3[1, 1] + "\t|" + A7_3[1, 2] + "\t|" + A7_3[1, 3] + "\t|" + A7_3[1, 4] + "\t|" + A7_3[1, 5] + "\t|" + A7_3[1, 6] + "\t||" + A7_3[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[2, 0] + "\t|" + A7_3[2, 1] + "\t|" + A7_3[2, 2] + "\t|" + A7_3[2, 3] + "\t|" + A7_3[2, 4] + "\t|" + A7_3[2, 5] + "\t|" + A7_3[2, 6] + "\t||" + A7_3[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[3, 0] + "\t|" + A7_3[3, 1] + "\t|" + A7_3[3, 2] + "\t|" + A7_3[3, 3] + "\t|" + A7_3[3, 4] + "\t|" + A7_3[3, 5] + "\t|" + A7_3[3, 6] + "\t||" + A7_3[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[4, 0] + "\t|" + A7_3[4, 1] + "\t|" + A7_3[4, 2] + "\t|" + A7_3[4, 3] + "\t|" + A7_3[4, 4] + "\t|" + A7_3[4, 5] + "\t|" + A7_3[4, 6] + "\t||" + A7_3[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[5, 0] + "\t|" + A7_3[5, 1] + "\t|" + A7_3[5, 2] + "\t|" + A7_3[5, 3] + "\t|" + A7_3[5, 4] + "\t|" + A7_3[5, 5] + "\t|" + A7_3[5, 6] + "\t||" + A7_3[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_3[6, 0] + "\t|" + A7_3[6, 1] + "\t|" + A7_3[6, 2] + "\t|" + A7_3[6, 3] + "\t|" + A7_3[6, 4] + "\t|" + A7_3[6, 5] + "\t|" + A7_3[6, 6] + "\t||" + A7_3[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 4 -------------");
+                    double[,] A7_4 = new double[a, b];
+                    A7_4[3, 0] = A7_3[3, 0] / A7_3[3, 3];
+                    A7_4[3, 1] = A7_3[3, 1] / A7_3[3, 3];
+                    A7_4[3, 2] = A7_3[3, 2] / A7_3[3, 3];
+                    A7_4[3, 3] = A7_3[3, 3] / A7_3[3, 3];
+                    A7_4[3, 4] = A7_3[3, 4] / A7_3[3, 3];
+                    A7_4[3, 5] = A7_3[3, 5] / A7_3[3, 3];
+                    A7_4[3, 6] = A7_3[3, 6] / A7_3[3, 3];
+                    A7_4[3, 7] = A7_3[3, 7] / A7_3[3, 3];
+                    A7_4[0, 0] = (A7_4[3, 0] * (-A7_3[0, 3])) + A7_3[0, 0];
+                    A7_4[0, 1] = (A7_4[3, 1] * (-A7_3[0, 3])) + A7_3[0, 1];
+                    A7_4[0, 2] = (A7_4[3, 2] * (-A7_3[0, 3])) + A7_3[0, 2];
+                    A7_4[0, 3] = (A7_4[3, 3] * (-A7_3[0, 3])) + A7_3[0, 3];
+                    A7_4[0, 4] = (A7_4[3, 4] * (-A7_3[0, 3])) + A7_3[0, 4];
+                    A7_4[0, 5] = (A7_4[3, 5] * (-A7_3[0, 3])) + A7_3[0, 5];
+                    A7_4[0, 6] = (A7_4[3, 6] * (-A7_3[0, 3])) + A7_3[0, 6];
+                    A7_4[0, 7] = (A7_4[3, 7] * (-A7_3[0, 3])) + A7_3[0, 7];
+                    A7_4[1, 0] = (A7_4[3, 0] * (-A7_3[1, 3])) + A7_3[1, 0];
+                    A7_4[1, 1] = (A7_4[3, 1] * (-A7_3[1, 3])) + A7_3[1, 1];
+                    A7_4[1, 2] = (A7_4[3, 2] * (-A7_3[1, 3])) + A7_3[1, 2];
+                    A7_4[1, 3] = (A7_4[3, 3] * (-A7_3[1, 3])) + A7_3[1, 3];
+                    A7_4[1, 4] = (A7_4[3, 4] * (-A7_3[1, 3])) + A7_3[1, 4];
+                    A7_4[1, 5] = (A7_4[3, 5] * (-A7_3[1, 3])) + A7_3[1, 5];
+                    A7_4[1, 6] = (A7_4[3, 6] * (-A7_3[1, 3])) + A7_3[1, 6];
+                    A7_4[1, 7] = (A7_4[3, 7] * (-A7_3[1, 3])) + A7_3[1, 7];
+                    A7_4[2, 0] = (A7_4[3, 0] * (-A7_3[2, 3])) + A7_3[2, 0];
+                    A7_4[2, 1] = (A7_4[3, 1] * (-A7_3[2, 3])) + A7_3[2, 1];
+                    A7_4[2, 2] = (A7_4[3, 2] * (-A7_3[2, 3])) + A7_3[2, 2];
+                    A7_4[2, 3] = (A7_4[3, 3] * (-A7_3[2, 3])) + A7_3[2, 3];
+                    A7_4[2, 4] = (A7_4[3, 4] * (-A7_3[2, 3])) + A7_3[2, 4];
+                    A7_4[2, 5] = (A7_4[3, 5] * (-A7_3[2, 3])) + A7_3[2, 5];
+                    A7_4[2, 6] = (A7_4[3, 6] * (-A7_3[2, 3])) + A7_3[2, 6];
+                    A7_4[2, 7] = (A7_4[3, 7] * (-A7_3[2, 3])) + A7_3[2, 7];
+                    A7_4[4, 0] = (A7_4[3, 0] * (-A7_3[4, 3])) + A7_3[4, 0];
+                    A7_4[4, 1] = (A7_4[3, 1] * (-A7_3[4, 3])) + A7_3[4, 1];
+                    A7_4[4, 2] = (A7_4[3, 2] * (-A7_3[4, 3])) + A7_3[4, 2];
+                    A7_4[4, 3] = (A7_4[3, 3] * (-A7_3[4, 3])) + A7_3[4, 3];
+                    A7_4[4, 4] = (A7_4[3, 4] * (-A7_3[4, 3])) + A7_3[4, 4];
+                    A7_4[4, 5] = (A7_4[3, 5] * (-A7_3[4, 3])) + A7_3[4, 5];
+                    A7_4[4, 6] = (A7_4[3, 6] * (-A7_3[4, 3])) + A7_3[4, 6];
+                    A7_4[4, 7] = (A7_4[3, 7] * (-A7_3[4, 3])) + A7_3[4, 7];
+                    A7_4[5, 0] = (A7_4[3, 0] * (-A7_3[5, 3])) + A7_3[5, 0];
+                    A7_4[5, 1] = (A7_4[3, 1] * (-A7_3[5, 3])) + A7_3[5, 1];
+                    A7_4[5, 2] = (A7_4[3, 2] * (-A7_3[5, 3])) + A7_3[5, 2];
+                    A7_4[5, 3] = (A7_4[3, 3] * (-A7_3[5, 3])) + A7_3[5, 3];
+                    A7_4[5, 4] = (A7_4[3, 4] * (-A7_3[5, 3])) + A7_3[5, 4];
+                    A7_4[5, 5] = (A7_4[3, 5] * (-A7_3[5, 3])) + A7_3[5, 5];
+                    A7_4[5, 6] = (A7_4[3, 6] * (-A7_3[5, 3])) + A7_3[5, 6];
+                    A7_4[5, 7] = (A7_4[3, 7] * (-A7_3[5, 3])) + A7_3[5, 7];
+                    A7_4[6, 0] = (A7_4[3, 0] * (-A7_3[6, 3])) + A7_3[6, 0];
+                    A7_4[6, 1] = (A7_4[3, 1] * (-A7_3[6, 3])) + A7_3[6, 1];
+                    A7_4[6, 2] = (A7_4[3, 2] * (-A7_3[6, 3])) + A7_3[6, 2];
+                    A7_4[6, 3] = (A7_4[3, 3] * (-A7_3[6, 3])) + A7_3[6, 3];
+                    A7_4[6, 4] = (A7_4[3, 4] * (-A7_3[6, 3])) + A7_3[6, 4];
+                    A7_4[6, 5] = (A7_4[3, 5] * (-A7_3[6, 3])) + A7_3[6, 5];
+                    A7_4[6, 6] = (A7_4[3, 6] * (-A7_3[6, 3])) + A7_3[6, 6];
+                    A7_4[6, 7] = (A7_4[3, 7] * (-A7_3[6, 3])) + A7_3[6, 7];
+                    Console.WriteLine("\t|" + A7_4[0, 0] + "\t|" + A7_4[0, 1] + "\t|" + A7_4[0, 2] + "\t|" + A7_4[0, 3] + "\t|" + A7_4[0, 4] + "\t|" + A7_4[0, 5] + "\t|" + A7_4[0, 6] + "\t||" + A7_4[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[1, 0] + "\t|" + A7_4[1, 1] + "\t|" + A7_4[1, 2] + "\t|" + A7_4[1, 3] + "\t|" + A7_4[1, 4] + "\t|" + A7_4[1, 5] + "\t|" + A7_4[1, 6] + "\t||" + A7_4[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[2, 0] + "\t|" + A7_4[2, 1] + "\t|" + A7_4[2, 2] + "\t|" + A7_4[2, 3] + "\t|" + A7_4[2, 4] + "\t|" + A7_4[2, 5] + "\t|" + A7_4[2, 6] + "\t||" + A7_4[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[3, 0] + "\t|" + A7_4[3, 1] + "\t|" + A7_4[3, 2] + "\t|" + A7_4[3, 3] + "\t|" + A7_4[3, 4] + "\t|" + A7_4[3, 5] + "\t|" + A7_4[3, 6] + "\t||" + A7_4[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[4, 0] + "\t|" + A7_4[4, 1] + "\t|" + A7_4[4, 2] + "\t|" + A7_4[4, 3] + "\t|" + A7_4[4, 4] + "\t|" + A7_4[4, 5] + "\t|" + A7_4[4, 6] + "\t||" + A7_4[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[5, 0] + "\t|" + A7_4[5, 1] + "\t|" + A7_4[5, 2] + "\t|" + A7_4[5, 3] + "\t|" + A7_4[5, 4] + "\t|" + A7_4[5, 5] + "\t|" + A7_4[5, 6] + "\t||" + A7_4[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_4[6, 0] + "\t|" + A7_4[6, 1] + "\t|" + A7_4[6, 2] + "\t|" + A7_4[6, 3] + "\t|" + A7_4[6, 4] + "\t|" + A7_4[6, 5] + "\t|" + A7_4[6, 6] + "\t||" + A7_4[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 5 -------------");
+                    double[,] A7_5 = new double[a, b];
+                    A7_5[4, 0] = A7_4[4, 0] / A7_4[4, 4];
+                    A7_5[4, 1] = A7_4[4, 1] / A7_4[4, 4];
+                    A7_5[4, 2] = A7_4[4, 2] / A7_4[4, 4];
+                    A7_5[4, 3] = A7_4[4, 3] / A7_4[4, 4];
+                    A7_5[4, 4] = A7_4[4, 4] / A7_4[4, 4];
+                    A7_5[4, 5] = A7_4[4, 5] / A7_4[4, 4];
+                    A7_5[4, 6] = A7_4[4, 6] / A7_4[4, 4];
+                    A7_5[4, 7] = A7_4[4, 7] / A7_4[4, 4];
+                    A7_5[0, 0] = (A7_5[4, 0] * (-A7_4[0, 4])) + A7_4[0, 0];
+                    A7_5[0, 1] = (A7_5[4, 1] * (-A7_4[0, 4])) + A7_4[0, 1];
+                    A7_5[0, 2] = (A7_5[4, 2] * (-A7_4[0, 4])) + A7_4[0, 2];
+                    A7_5[0, 3] = (A7_5[4, 3] * (-A7_4[0, 4])) + A7_4[0, 3];
+                    A7_5[0, 4] = (A7_5[4, 4] * (-A7_4[0, 4])) + A7_4[0, 4];
+                    A7_5[0, 5] = (A7_5[4, 5] * (-A7_4[0, 4])) + A7_4[0, 5];
+                    A7_5[0, 6] = (A7_5[4, 6] * (-A7_4[0, 4])) + A7_4[0, 6];
+                    A7_5[0, 7] = (A7_5[4, 7] * (-A7_4[0, 4])) + A7_4[0, 7];
+                    A7_5[1, 0] = (A7_5[4, 0] * (-A7_4[1, 4])) + A7_4[1, 0];
+                    A7_5[1, 1] = (A7_5[4, 1] * (-A7_4[1, 4])) + A7_4[1, 1];
+                    A7_5[1, 2] = (A7_5[4, 2] * (-A7_4[1, 4])) + A7_4[1, 2];
+                    A7_5[1, 3] = (A7_5[4, 3] * (-A7_4[1, 4])) + A7_4[1, 3];
+                    A7_5[1, 4] = (A7_5[4, 4] * (-A7_4[1, 4])) + A7_4[1, 4];
+                    A7_5[1, 5] = (A7_5[4, 5] * (-A7_4[1, 4])) + A7_4[1, 5];
+                    A7_5[1, 6] = (A7_5[4, 6] * (-A7_4[1, 4])) + A7_4[1, 6];
+                    A7_5[1, 7] = (A7_5[4, 7] * (-A7_4[1, 4])) + A7_4[1, 7];
+                    A7_5[2, 0] = (A7_5[4, 0] * (-A7_4[2, 4])) + A7_4[2, 0];
+                    A7_5[2, 1] = (A7_5[4, 1] * (-A7_4[2, 4])) + A7_4[2, 1];
+                    A7_5[2, 2] = (A7_5[4, 2] * (-A7_4[2, 4])) + A7_4[2, 2];
+                    A7_5[2, 3] = (A7_5[4, 3] * (-A7_4[2, 4])) + A7_4[2, 3];
+                    A7_5[2, 4] = (A7_5[4, 4] * (-A7_4[2, 4])) + A7_4[2, 4];
+                    A7_5[2, 5] = (A7_5[4, 5] * (-A7_4[2, 4])) + A7_4[2, 5];
+                    A7_5[2, 6] = (A7_5[4, 6] * (-A7_4[2, 4])) + A7_4[2, 6];
+                    A7_5[2, 7] = (A7_5[4, 7] * (-A7_4[2, 4])) + A7_4[2, 7];
+                    A7_5[3, 0] = (A7_5[4, 0] * (-A7_4[3, 4])) + A7_4[3, 0];
+                    A7_5[3, 1] = (A7_5[4, 1] * (-A7_4[3, 4])) + A7_4[3, 1];
+                    A7_5[3, 2] = (A7_5[4, 2] * (-A7_4[3, 4])) + A7_4[3, 2];
+                    A7_5[3, 3] = (A7_5[4, 3] * (-A7_4[3, 4])) + A7_4[3, 3];
+                    A7_5[3, 4] = (A7_5[4, 4] * (-A7_4[3, 4])) + A7_4[3, 4];
+                    A7_5[3, 5] = (A7_5[4, 5] * (-A7_4[3, 4])) + A7_4[3, 5];
+                    A7_5[3, 6] = (A7_5[4, 6] * (-A7_4[3, 4])) + A7_4[3, 6];
+                    A7_5[3, 7] = (A7_5[4, 7] * (-A7_4[3, 4])) + A7_4[3, 7];
+                    A7_5[5, 0] = (A7_5[4, 0] * (-A7_4[5, 4])) + A7_4[5, 0];
+                    A7_5[5, 1] = (A7_5[4, 1] * (-A7_4[5, 4])) + A7_4[5, 1];
+                    A7_5[5, 2] = (A7_5[4, 2] * (-A7_4[5, 4])) + A7_4[5, 2];
+                    A7_5[5, 3] = (A7_5[4, 3] * (-A7_4[5, 4])) + A7_4[5, 3];
+                    A7_5[5, 4] = (A7_5[4, 4] * (-A7_4[5, 4])) + A7_4[5, 4];
+                    A7_5[5, 5] = (A7_5[4, 5] * (-A7_4[5, 4])) + A7_4[5, 5];
+                    A7_5[5, 6] = (A7_5[4, 6] * (-A7_4[5, 4])) + A7_4[5, 6];
+                    A7_5[5, 7] = (A7_5[4, 7] * (-A7_4[5, 4])) + A7_4[5, 7];
+                    A7_5[6, 0] = (A7_5[4, 0] * (-A7_4[6, 4])) + A7_4[6, 0];
+                    A7_5[6, 1] = (A7_5[4, 1] * (-A7_4[6, 4])) + A7_4[6, 1];
+                    A7_5[6, 2] = (A7_5[4, 2] * (-A7_4[6, 4])) + A7_4[6, 2];
+                    A7_5[6, 3] = (A7_5[4, 3] * (-A7_4[6, 4])) + A7_4[6, 3];
+                    A7_5[6, 4] = (A7_5[4, 4] * (-A7_4[6, 4])) + A7_4[6, 4];
+                    A7_5[6, 5] = (A7_5[4, 5] * (-A7_4[6, 4])) + A7_4[6, 5];
+                    A7_5[6, 6] = (A7_5[4, 6] * (-A7_4[6, 4])) + A7_4[6, 6];
+                    A7_5[6, 7] = (A7_5[4, 7] * (-A7_4[6, 4])) + A7_4[6, 7];
+                    Console.WriteLine("\t|" + A7_5[0, 0] + "\t|" + A7_5[0, 1] + "\t|" + A7_5[0, 2] + "\t|" + A7_5[0, 3] + "\t|" + A7_5[0, 4] + "\t|" + A7_5[0, 5] + "\t|" + A7_5[0, 6] + "\t||" + A7_5[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[1, 0] + "\t|" + A7_5[1, 1] + "\t|" + A7_5[1, 2] + "\t|" + A7_5[1, 3] + "\t|" + A7_5[1, 4] + "\t|" + A7_5[1, 5] + "\t|" + A7_5[1, 6] + "\t||" + A7_5[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[2, 0] + "\t|" + A7_5[2, 1] + "\t|" + A7_5[2, 2] + "\t|" + A7_5[2, 3] + "\t|" + A7_5[2, 4] + "\t|" + A7_5[2, 5] + "\t|" + A7_5[2, 6] + "\t||" + A7_5[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[3, 0] + "\t|" + A7_5[3, 1] + "\t|" + A7_5[3, 2] + "\t|" + A7_5[3, 3] + "\t|" + A7_5[3, 4] + "\t|" + A7_5[3, 5] + "\t|" + A7_5[3, 6] + "\t||" + A7_5[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[4, 0] + "\t|" + A7_5[4, 1] + "\t|" + A7_5[4, 2] + "\t|" + A7_5[4, 3] + "\t|" + A7_5[4, 4] + "\t|" + A7_5[4, 5] + "\t|" + A7_5[4, 6] + "\t||" + A7_5[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[5, 0] + "\t|" + A7_5[5, 1] + "\t|" + A7_5[5, 2] + "\t|" + A7_5[5, 3] + "\t|" + A7_5[5, 4] + "\t|" + A7_5[5, 5] + "\t|" + A7_5[5, 6] + "\t||" + A7_5[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_5[6, 0] + "\t|" + A7_5[6, 1] + "\t|" + A7_5[6, 2] + "\t|" + A7_5[6, 3] + "\t|" + A7_5[6, 4] + "\t|" + A7_5[6, 5] + "\t|" + A7_5[6, 6] + "\t||" + A7_5[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 6 -------------");
+                    double[,] A7_6 = new double[a, b];
+                    A7_6[5, 0] = A7_5[5, 0] / A7_5[5, 5];
+                    A7_6[5, 1] = A7_5[5, 1] / A7_5[5, 5];
+                    A7_6[5, 2] = A7_5[5, 2] / A7_5[5, 5];
+                    A7_6[5, 3] = A7_5[5, 3] / A7_5[5, 5];
+                    A7_6[5, 4] = A7_5[5, 4] / A7_5[5, 5];
+                    A7_6[5, 5] = A7_5[5, 5] / A7_5[5, 5];
+                    A7_6[5, 6] = A7_5[5, 6] / A7_5[5, 5];
+                    A7_6[5, 7] = A7_5[5, 7] / A7_5[5, 5];
+                    A7_6[0, 0] = (A7_6[5, 0] * (-A7_5[0, 5])) + A7_5[0, 0];
+                    A7_6[0, 1] = (A7_6[5, 1] * (-A7_5[0, 5])) + A7_5[0, 1];
+                    A7_6[0, 2] = (A7_6[5, 2] * (-A7_5[0, 5])) + A7_5[0, 2];
+                    A7_6[0, 3] = (A7_6[5, 3] * (-A7_5[0, 5])) + A7_5[0, 3];
+                    A7_6[0, 4] = (A7_6[5, 4] * (-A7_5[0, 5])) + A7_5[0, 4];
+                    A7_6[0, 5] = (A7_6[5, 5] * (-A7_5[0, 5])) + A7_5[0, 5];
+                    A7_6[0, 6] = (A7_6[5, 6] * (-A7_5[0, 5])) + A7_5[0, 6];
+                    A7_6[0, 7] = (A7_6[5, 7] * (-A7_5[0, 5])) + A7_5[0, 7];
+                    A7_6[1, 0] = (A7_6[5, 0] * (-A7_5[1, 5])) + A7_5[1, 0];
+                    A7_6[1, 1] = (A7_6[5, 1] * (-A7_5[1, 5])) + A7_5[1, 1];
+                    A7_6[1, 2] = (A7_6[5, 2] * (-A7_5[1, 5])) + A7_5[1, 2];
+                    A7_6[1, 3] = (A7_6[5, 3] * (-A7_5[1, 5])) + A7_5[1, 3];
+                    A7_6[1, 4] = (A7_6[5, 4] * (-A7_5[1, 5])) + A7_5[1, 4];
+                    A7_6[1, 5] = (A7_6[5, 5] * (-A7_5[1, 5])) + A7_5[1, 5];
+                    A7_6[1, 6] = (A7_6[5, 6] * (-A7_5[1, 5])) + A7_5[1, 6];
+                    A7_6[1, 7] = (A7_6[5, 7] * (-A7_5[1, 5])) + A7_5[1, 7];
+                    A7_6[2, 0] = (A7_6[5, 0] * (-A7_5[2, 5])) + A7_5[2, 0];
+                    A7_6[2, 1] = (A7_6[5, 1] * (-A7_5[2, 5])) + A7_5[2, 1];
+                    A7_6[2, 2] = (A7_6[5, 2] * (-A7_5[2, 5])) + A7_5[2, 2];
+                    A7_6[2, 3] = (A7_6[5, 3] * (-A7_5[2, 5])) + A7_5[2, 3];
+                    A7_6[2, 4] = (A7_6[5, 4] * (-A7_5[2, 5])) + A7_5[2, 4];
+                    A7_6[2, 5] = (A7_6[5, 5] * (-A7_5[2, 5])) + A7_5[2, 5];
+                    A7_6[2, 6] = (A7_6[5, 6] * (-A7_5[2, 5])) + A7_5[2, 6];
+                    A7_6[2, 7] = (A7_6[5, 7] * (-A7_5[2, 5])) + A7_5[2, 7];
+                    A7_6[3, 0] = (A7_6[5, 0] * (-A7_5[3, 5])) + A7_5[3, 0];
+                    A7_6[3, 1] = (A7_6[5, 1] * (-A7_5[3, 5])) + A7_5[3, 1];
+                    A7_6[3, 2] = (A7_6[5, 2] * (-A7_5[3, 5])) + A7_5[3, 2];
+                    A7_6[3, 3] = (A7_6[5, 3] * (-A7_5[3, 5])) + A7_5[3, 3];
+                    A7_6[3, 4] = (A7_6[5, 4] * (-A7_5[3, 5])) + A7_5[3, 4];
+                    A7_6[3, 5] = (A7_6[5, 5] * (-A7_5[3, 5])) + A7_5[3, 5];
+                    A7_6[3, 6] = (A7_6[5, 6] * (-A7_5[3, 5])) + A7_5[3, 6];
+                    A7_6[3, 7] = (A7_6[5, 7] * (-A7_5[3, 5])) + A7_5[3, 7];
+                    A7_6[4, 0] = (A7_6[5, 0] * (-A7_5[4, 5])) + A7_5[4, 0];
+                    A7_6[4, 1] = (A7_6[5, 1] * (-A7_5[4, 5])) + A7_5[4, 1];
+                    A7_6[4, 2] = (A7_6[5, 2] * (-A7_5[4, 5])) + A7_5[4, 2];
+                    A7_6[4, 3] = (A7_6[5, 3] * (-A7_5[4, 5])) + A7_5[4, 3];
+                    A7_6[4, 4] = (A7_6[5, 4] * (-A7_5[4, 5])) + A7_5[4, 4];
+                    A7_6[4, 5] = (A7_6[5, 5] * (-A7_5[4, 5])) + A7_5[4, 5];
+                    A7_6[4, 6] = (A7_6[5, 6] * (-A7_5[4, 5])) + A7_5[4, 6];
+                    A7_6[4, 7] = (A7_6[5, 7] * (-A7_5[4, 5])) + A7_5[4, 7];
+                    A7_6[6, 0] = (A7_6[5, 0] * (-A7_5[6, 5])) + A7_5[6, 0];
+                    A7_6[6, 1] = (A7_6[5, 1] * (-A7_5[6, 5])) + A7_5[6, 1];
+                    A7_6[6, 2] = (A7_6[5, 2] * (-A7_5[6, 5])) + A7_5[6, 2];
+                    A7_6[6, 3] = (A7_6[5, 3] * (-A7_5[6, 5])) + A7_5[6, 3];
+                    A7_6[6, 4] = (A7_6[5, 4] * (-A7_5[6, 5])) + A7_5[6, 4];
+                    A7_6[6, 5] = (A7_6[5, 5] * (-A7_5[6, 5])) + A7_5[6, 5];
+                    A7_6[6, 6] = (A7_6[5, 6] * (-A7_5[6, 5])) + A7_5[6, 6];
+                    A7_6[6, 7] = (A7_6[5, 7] * (-A7_5[6, 5])) + A7_5[6, 7];
+                    Console.WriteLine("\t|" + A7_6[0, 0] + "\t|" + A7_6[0, 1] + "\t|" + A7_6[0, 2] + "\t|" + A7_6[0, 3] + "\t|" + A7_6[0, 4] + "\t|" + A7_6[0, 5] + "\t|" + A7_6[0, 6] + "\t||" + A7_6[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[1, 0] + "\t|" + A7_6[1, 1] + "\t|" + A7_6[1, 2] + "\t|" + A7_6[1, 3] + "\t|" + A7_6[1, 4] + "\t|" + A7_6[1, 5] + "\t|" + A7_6[1, 6] + "\t||" + A7_6[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[2, 0] + "\t|" + A7_6[2, 1] + "\t|" + A7_6[2, 2] + "\t|" + A7_6[2, 3] + "\t|" + A7_6[2, 4] + "\t|" + A7_6[2, 5] + "\t|" + A7_6[2, 6] + "\t||" + A7_6[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[3, 0] + "\t|" + A7_6[3, 1] + "\t|" + A7_6[3, 2] + "\t|" + A7_6[3, 3] + "\t|" + A7_6[3, 4] + "\t|" + A7_6[3, 5] + "\t|" + A7_6[3, 6] + "\t||" + A7_6[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[4, 0] + "\t|" + A7_6[4, 1] + "\t|" + A7_6[4, 2] + "\t|" + A7_6[4, 3] + "\t|" + A7_6[4, 4] + "\t|" + A7_6[4, 5] + "\t|" + A7_6[4, 6] + "\t||" + A7_6[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[5, 0] + "\t|" + A7_6[5, 1] + "\t|" + A7_6[5, 2] + "\t|" + A7_6[5, 3] + "\t|" + A7_6[5, 4] + "\t|" + A7_6[5, 5] + "\t|" + A7_6[5, 6] + "\t||" + A7_6[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_6[6, 0] + "\t|" + A7_6[6, 1] + "\t|" + A7_6[6, 2] + "\t|" + A7_6[6, 3] + "\t|" + A7_6[6, 4] + "\t|" + A7_6[6, 5] + "\t|" + A7_6[6, 6] + "\t||" + A7_6[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Итерация 7 -------------");
+                    double[,] A7_7 = new double[a, b];
+                    A7_7[6, 0] = A7_6[6, 0] / A7_6[6, 6];
+                    A7_7[6, 1] = A7_6[6, 1] / A7_6[6, 6];
+                    A7_7[6, 2] = A7_6[6, 2] / A7_6[6, 6];
+                    A7_7[6, 3] = A7_6[6, 3] / A7_6[6, 6];
+                    A7_7[6, 4] = A7_6[6, 4] / A7_6[6, 6];
+                    A7_7[6, 5] = A7_6[6, 5] / A7_6[6, 6];
+                    A7_7[6, 6] = A7_6[6, 6] / A7_6[6, 6];
+                    A7_7[6, 7] = A7_6[6, 7] / A7_6[6, 6];
+                    A7_7[0, 0] = (A7_7[6, 0] * (-A7_6[0, 6])) + A7_6[0, 0];
+                    A7_7[0, 1] = (A7_7[6, 1] * (-A7_6[0, 6])) + A7_6[0, 1];
+                    A7_7[0, 2] = (A7_7[6, 2] * (-A7_6[0, 6])) + A7_6[0, 2];
+                    A7_7[0, 3] = (A7_7[6, 3] * (-A7_6[0, 6])) + A7_6[0, 3];
+                    A7_7[0, 4] = (A7_7[6, 4] * (-A7_6[0, 6])) + A7_6[0, 4];
+                    A7_7[0, 5] = (A7_7[6, 5] * (-A7_6[0, 6])) + A7_6[0, 5];
+                    A7_7[0, 6] = (A7_7[6, 6] * (-A7_6[0, 6])) + A7_6[0, 6];
+                    A7_7[0, 7] = (A7_7[6, 7] * (-A7_6[0, 6])) + A7_6[0, 7];
+                    A7_7[1, 0] = (A7_7[6, 0] * (-A7_6[1, 6])) + A7_6[1, 0];
+                    A7_7[1, 1] = (A7_7[6, 1] * (-A7_6[1, 6])) + A7_6[1, 1];
+                    A7_7[1, 2] = (A7_7[6, 2] * (-A7_6[1, 6])) + A7_6[1, 2];
+                    A7_7[1, 3] = (A7_7[6, 3] * (-A7_6[1, 6])) + A7_6[1, 3];
+                    A7_7[1, 4] = (A7_7[6, 4] * (-A7_6[1, 6])) + A7_6[1, 4];
+                    A7_7[1, 5] = (A7_7[6, 5] * (-A7_6[1, 6])) + A7_6[1, 5];
+                    A7_7[1, 6] = (A7_7[6, 6] * (-A7_6[1, 6])) + A7_6[1, 6];
+                    A7_7[1, 7] = (A7_7[6, 7] * (-A7_6[1, 6])) + A7_6[1, 7];
+                    A7_7[2, 0] = (A7_7[6, 0] * (-A7_6[2, 6])) + A7_6[2, 0];
+                    A7_7[2, 1] = (A7_7[6, 1] * (-A7_6[2, 6])) + A7_6[2, 1];
+                    A7_7[2, 2] = (A7_7[6, 2] * (-A7_6[2, 6])) + A7_6[2, 2];
+                    A7_7[2, 3] = (A7_7[6, 3] * (-A7_6[2, 6])) + A7_6[2, 3];
+                    A7_7[2, 4] = (A7_7[6, 4] * (-A7_6[2, 6])) + A7_6[2, 4];
+                    A7_7[2, 5] = (A7_7[6, 5] * (-A7_6[2, 6])) + A7_6[2, 5];
+                    A7_7[2, 6] = (A7_7[6, 6] * (-A7_6[2, 6])) + A7_6[2, 6];
+                    A7_7[2, 7] = (A7_7[6, 7] * (-A7_6[2, 6])) + A7_6[2, 7];
+                    A7_7[3, 0] = (A7_7[6, 0] * (-A7_6[3, 6])) + A7_6[3, 0];
+                    A7_7[3, 1] = (A7_7[6, 1] * (-A7_6[3, 6])) + A7_6[3, 1];
+                    A7_7[3, 2] = (A7_7[6, 2] * (-A7_6[3, 6])) + A7_6[3, 2];
+                    A7_7[3, 3] = (A7_7[6, 3] * (-A7_6[3, 6])) + A7_6[3, 3];
+                    A7_7[3, 4] = (A7_7[6, 4] * (-A7_6[3, 6])) + A7_6[3, 4];
+                    A7_7[3, 5] = (A7_7[6, 5] * (-A7_6[3, 6])) + A7_6[3, 5];
+                    A7_7[3, 6] = (A7_7[6, 6] * (-A7_6[3, 6])) + A7_6[3, 6];
+                    A7_7[3, 7] = (A7_7[6, 7] * (-A7_6[3, 6])) + A7_6[3, 7];
+                    A7_7[4, 0] = (A7_7[6, 0] * (-A7_6[4, 6])) + A7_6[4, 0];
+                    A7_7[4, 1] = (A7_7[6, 1] * (-A7_6[4, 6])) + A7_6[4, 1];
+                    A7_7[4, 2] = (A7_7[6, 2] * (-A7_6[4, 6])) + A7_6[4, 2];
+                    A7_7[4, 3] = (A7_7[6, 3] * (-A7_6[4, 6])) + A7_6[4, 3];
+                    A7_7[4, 4] = (A7_7[6, 4] * (-A7_6[4, 6])) + A7_6[4, 4];
+                    A7_7[4, 5] = (A7_7[6, 5] * (-A7_6[4, 6])) + A7_6[4, 5];
+                    A7_7[4, 6] = (A7_7[6, 6] * (-A7_6[4, 6])) + A7_6[4, 6];
+                    A7_7[4, 7] = (A7_7[6, 7] * (-A7_6[4, 6])) + A7_6[4, 7];
+                    A7_7[5, 0] = (A7_7[6, 0] * (-A7_6[5, 6])) + A7_6[5, 0];
+                    A7_7[5, 1] = (A7_7[6, 1] * (-A7_6[5, 6])) + A7_6[5, 1];
+                    A7_7[5, 2] = (A7_7[6, 2] * (-A7_6[5, 6])) + A7_6[5, 2];
+                    A7_7[5, 3] = (A7_7[6, 3] * (-A7_6[5, 6])) + A7_6[5, 3];
+                    A7_7[5, 4] = (A7_7[6, 4] * (-A7_6[5, 6])) + A7_6[5, 4];
+                    A7_7[5, 5] = (A7_7[6, 5] * (-A7_6[5, 6])) + A7_6[5, 5];
+                    A7_7[5, 6] = (A7_7[6, 6] * (-A7_6[5, 6])) + A7_6[5, 6];
+                    A7_7[5, 7] = (A7_7[6, 7] * (-A7_6[5, 6])) + A7_6[5, 7];
+                    Console.WriteLine("\t|" + A7_7[0, 0] + "\t|" + A7_7[0, 1] + "\t|" + A7_7[0, 2] + "\t|" + A7_7[0, 3] + "\t|" + A7_7[0, 4] + "\t|" + A7_7[0, 5] + "\t|" + A7_7[0, 6] + "\t||" + A7_7[0, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[1, 0] + "\t|" + A7_7[1, 1] + "\t|" + A7_7[1, 2] + "\t|" + A7_7[1, 3] + "\t|" + A7_7[1, 4] + "\t|" + A7_7[1, 5] + "\t|" + A7_7[1, 6] + "\t||" + A7_7[1, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[2, 0] + "\t|" + A7_7[2, 1] + "\t|" + A7_7[2, 2] + "\t|" + A7_7[2, 3] + "\t|" + A7_7[2, 4] + "\t|" + A7_7[2, 5] + "\t|" + A7_7[2, 6] + "\t||" + A7_7[2, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[3, 0] + "\t|" + A7_7[3, 1] + "\t|" + A7_7[3, 2] + "\t|" + A7_7[3, 3] + "\t|" + A7_7[3, 4] + "\t|" + A7_7[3, 5] + "\t|" + A7_7[3, 6] + "\t||" + A7_7[3, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[4, 0] + "\t|" + A7_7[4, 1] + "\t|" + A7_7[4, 2] + "\t|" + A7_7[4, 3] + "\t|" + A7_7[4, 4] + "\t|" + A7_7[4, 5] + "\t|" + A7_7[4, 6] + "\t||" + A7_7[4, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[5, 0] + "\t|" + A7_7[5, 1] + "\t|" + A7_7[5, 2] + "\t|" + A7_7[5, 3] + "\t|" + A7_7[5, 4] + "\t|" + A7_7[5, 5] + "\t|" + A7_7[5, 6] + "\t||" + A7_7[5, 7] + "\t|");
+                    Console.WriteLine("\t|" + A7_7[6, 0] + "\t|" + A7_7[6, 1] + "\t|" + A7_7[6, 2] + "\t|" + A7_7[6, 3] + "\t|" + A7_7[6, 4] + "\t|" + A7_7[6, 5] + "\t|" + A7_7[6, 6] + "\t||" + A7_7[6, 7] + "\t|");
+                    Console.WriteLine();
+                    Console.WriteLine("------------- Ответ -------------");
+                    Console.WriteLine("x1 = " + A7_7[0, 7]);
+                    Console.WriteLine("x2 = " + A7_7[1, 7]);
+                    Console.WriteLine("x3 = " + A7_7[2, 7]);
+                    Console.WriteLine("x4 = " + A7_7[3, 7]);
+                    Console.WriteLine("x5 = " + A7_7[4, 7]);
+                    Console.WriteLine("x6 = " + A7_7[5, 7]);
+                    Console.WriteLine("x7 = " + A7_7[6, 7]);
+                }
+                else
+                {
+                    Console.WriteLine("Введите кол-во переменных от 2 до 10");
+                }
+                Console.WriteLine();
+                Console.WriteLine("Вы хотите продолжить (Y/N)? ");
+            } while (Console.ReadKey().KeyChar != 'N');
+        }
+    }
+}

+ 36 - 0
Method Gauss/Properties/AssemblyInfo.cs

@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// Общие сведения об этой сборке предоставляются следующим набором
+// набора атрибутов. Измените значения этих атрибутов для изменения сведений,
+// связанные с этой сборкой.
+[assembly: AssemblyTitle("Method Gauss")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Method Gauss")]
+[assembly: AssemblyCopyright("Copyright ©  2022")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми
+// для компонентов COM. Если необходимо обратиться к типу в этой сборке через
+// из модели COM задайте для атрибута ComVisible этого типа значение true.
+[assembly: ComVisible(false)]
+
+// Следующий GUID представляет идентификатор typelib, если этот проект доступен из модели COM
+[assembly: Guid("f0ed9908-2928-42ce-8cab-ecc640aaafb0")]
+
+// Сведения о версии сборки состоят из указанных ниже четырех значений:
+//
+//      Основной номер версии
+//      Дополнительный номер версии
+//      Номер сборки
+//      Номер редакции
+//
+// Можно задать все значения или принять номера сборки и редакции по умолчанию 
+// используя "*", как показано ниже:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]