theme changed
This commit is contained in:
10
labs/lab3/Calc_switch/Calc_switch.csproj
Normal file
10
labs/lab3/Calc_switch/Calc_switch.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
40
labs/lab3/Calc_switch/Program.cs
Normal file
40
labs/lab3/Calc_switch/Program.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.Write("A = ");
|
||||
double a = double.Parse(Console.ReadLine());
|
||||
Console.Write("OP = ");
|
||||
char op = char.Parse(Console.ReadLine());
|
||||
Console.Write("B = ");
|
||||
double b = double.Parse(Console.ReadLine());
|
||||
|
||||
|
||||
bool ok = true;
|
||||
double res = 0;
|
||||
|
||||
switch (op)
|
||||
{
|
||||
case '+': res = a + b; break;
|
||||
case '-': res = a - b; break;
|
||||
case '*': res = a * b; break;
|
||||
case '/':
|
||||
case ':':
|
||||
res = a / b; break;
|
||||
default: ok = false; break;
|
||||
}
|
||||
|
||||
if (ok)
|
||||
{
|
||||
Console.WriteLine("{0} {1} {2} = {3}", a, op, b, res);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Операция не определена");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch
Executable file
BIN
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch
Executable file
Binary file not shown.
23
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.deps.json
Normal file
23
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.deps.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"Calc_switch/1.0.0": {
|
||||
"runtime": {
|
||||
"Calc_switch.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Calc_switch/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.dll
Normal file
BIN
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.dll
Normal file
Binary file not shown.
BIN
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.pdb
Normal file
BIN
labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj",
|
||||
"projectName": "Calc_switch",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/Calc_switch/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
labs/lab3/Calc_switch/obj/Calc_switch.csproj.nuget.g.props
Normal file
15
labs/lab3/Calc_switch/obj/Calc_switch.csproj.nuget.g.props
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/nik/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Calc_switch")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+36606926b9d67f78c473de632eed3cf6c4ed12c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Calc_switch")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Calc_switch")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
bdc7ef3b738fa31478566bc46d5a1796bb0e371c39f067fc5de1812987ccca32
|
||||
@@ -0,0 +1,15 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Calc_switch
|
||||
build_property.ProjectDir = /home/nik/oop/labs/lab3/Calc_switch/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.assets.cache
Normal file
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.assets.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
72e0fd76bdd4fbbaa2b7fc61e9ae9c365a1e5320c90e0d6b58bffdb5435ba591
|
||||
@@ -0,0 +1,14 @@
|
||||
/home/nik/oop/labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch
|
||||
/home/nik/oop/labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.deps.json
|
||||
/home/nik/oop/labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.runtimeconfig.json
|
||||
/home/nik/oop/labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.dll
|
||||
/home/nik/oop/labs/lab3/Calc_switch/bin/Debug/net9.0/Calc_switch.pdb
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.AssemblyInfoInputs.cache
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.AssemblyInfo.cs
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.csproj.CoreCompileInputs.cache
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.dll
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/refint/Calc_switch.dll
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.pdb
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.genruntimeconfig.cache
|
||||
/home/nik/oop/labs/lab3/Calc_switch/obj/Debug/net9.0/ref/Calc_switch.dll
|
||||
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.dll
Normal file
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.dll
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
20e1d20fbd0f80e4eae1e8a6bc447b0f012b96726355b654aa2a8cb08d1b7858
|
||||
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.pdb
Normal file
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/Calc_switch.pdb
Normal file
Binary file not shown.
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/apphost
Executable file
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/ref/Calc_switch.dll
Normal file
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/ref/Calc_switch.dll
Normal file
Binary file not shown.
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/refint/Calc_switch.dll
Normal file
BIN
labs/lab3/Calc_switch/obj/Debug/net9.0/refint/Calc_switch.dll
Normal file
Binary file not shown.
78
labs/lab3/Calc_switch/obj/project.assets.json
Normal file
78
labs/lab3/Calc_switch/obj/project.assets.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net9.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net9.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"/home/nik/.nuget/packages/": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj",
|
||||
"projectName": "Calc_switch",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/Calc_switch/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
labs/lab3/Calc_switch/obj/project.nuget.cache
Normal file
10
labs/lab3/Calc_switch/obj/project.nuget.cache
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "CGW2XdbYpzY=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/nik/oop/labs/lab3/Calc_switch/Calc_switch.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
10
labs/lab3/Comp/Comp.csproj
Normal file
10
labs/lab3/Comp/Comp.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
83
labs/lab3/Comp/Program.cs
Normal file
83
labs/lab3/Comp/Program.cs
Normal file
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void FuncWhile()
|
||||
{
|
||||
var ci = CultureInfo.InvariantCulture;
|
||||
double x1 = double.Parse(Console.ReadLine(), ci);
|
||||
double x2 = double.Parse(Console.ReadLine(), ci);
|
||||
double h = double.Parse(Console.ReadLine(), ci);
|
||||
double x = x1;
|
||||
while (x <= x2 + 1e-12)
|
||||
{
|
||||
double y = Math.Sin(x);
|
||||
Console.WriteLine($"while: {x.ToString(ci)} {y.ToString(ci)}");
|
||||
x += h;
|
||||
}
|
||||
}
|
||||
|
||||
static void FuncDoWhile()
|
||||
{
|
||||
var ci = CultureInfo.InvariantCulture;
|
||||
double x1 = double.Parse(Console.ReadLine(), ci);
|
||||
double x2 = double.Parse(Console.ReadLine(), ci);
|
||||
double h = double.Parse(Console.ReadLine(), ci);
|
||||
double x = x1;
|
||||
if (h <= 0) return;
|
||||
do
|
||||
{
|
||||
double y = Math.Sin(x);
|
||||
Console.WriteLine($"do-while: {x.ToString(ci)} {y.ToString(ci)}");
|
||||
x += h;
|
||||
} while (x - h < x2 + 1e-12);
|
||||
}
|
||||
|
||||
static int GcdWhile(int a, int b)
|
||||
{
|
||||
a = Math.Abs(a);
|
||||
b = Math.Abs(b);
|
||||
while (b != 0)
|
||||
{
|
||||
int temp = a % b;
|
||||
a = b;
|
||||
b = temp;
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
static int GcdDoWhile(int a, int b)
|
||||
{
|
||||
a = Math.Abs(a);
|
||||
b = Math.Abs(b);
|
||||
int temp;
|
||||
if (b == 0) return a;
|
||||
do
|
||||
{
|
||||
temp = a % b;
|
||||
a = b;
|
||||
b = temp;
|
||||
} while (b != 0);
|
||||
return a;
|
||||
}
|
||||
|
||||
static void Main()
|
||||
{
|
||||
Console.WriteLine("=== Функция с while ===");
|
||||
FuncWhile();
|
||||
|
||||
Console.WriteLine("=== Функция с do-while ===");
|
||||
FuncDoWhile();
|
||||
|
||||
Console.WriteLine("Введите два числа для НОД (while):");
|
||||
int a = int.Parse(Console.ReadLine());
|
||||
int b = int.Parse(Console.ReadLine());
|
||||
Console.WriteLine($"НОД (while): {GcdWhile(a, b)}");
|
||||
|
||||
Console.WriteLine("Введите два числа для НОД (do-while):");
|
||||
a = int.Parse(Console.ReadLine());
|
||||
b = int.Parse(Console.ReadLine());
|
||||
Console.WriteLine($"НОД (do-while): {GcdDoWhile(a, b)}");
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/Comp/bin/Debug/net9.0/Comp
Executable file
BIN
labs/lab3/Comp/bin/Debug/net9.0/Comp
Executable file
Binary file not shown.
23
labs/lab3/Comp/bin/Debug/net9.0/Comp.deps.json
Normal file
23
labs/lab3/Comp/bin/Debug/net9.0/Comp.deps.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"Comp/1.0.0": {
|
||||
"runtime": {
|
||||
"Comp.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Comp/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/Comp/bin/Debug/net9.0/Comp.dll
Normal file
BIN
labs/lab3/Comp/bin/Debug/net9.0/Comp.dll
Normal file
Binary file not shown.
BIN
labs/lab3/Comp/bin/Debug/net9.0/Comp.pdb
Normal file
BIN
labs/lab3/Comp/bin/Debug/net9.0/Comp.pdb
Normal file
Binary file not shown.
12
labs/lab3/Comp/bin/Debug/net9.0/Comp.runtimeconfig.json
Normal file
12
labs/lab3/Comp/bin/Debug/net9.0/Comp.runtimeconfig.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
73
labs/lab3/Comp/obj/Comp.csproj.nuget.dgspec.json
Normal file
73
labs/lab3/Comp/obj/Comp.csproj.nuget.dgspec.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"/home/nik/oop/labs/lab3/Comp/Comp.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"/home/nik/oop/labs/lab3/Comp/Comp.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/Comp/Comp.csproj",
|
||||
"projectName": "Comp",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/Comp/Comp.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/Comp/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
labs/lab3/Comp/obj/Comp.csproj.nuget.g.props
Normal file
15
labs/lab3/Comp/obj/Comp.csproj.nuget.g.props
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/nik/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
2
labs/lab3/Comp/obj/Comp.csproj.nuget.g.targets
Normal file
2
labs/lab3/Comp/obj/Comp.csproj.nuget.g.targets
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
22
labs/lab3/Comp/obj/Debug/net9.0/Comp.AssemblyInfo.cs
Normal file
22
labs/lab3/Comp/obj/Debug/net9.0/Comp.AssemblyInfo.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Comp")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+36606926b9d67f78c473de632eed3cf6c4ed12c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Comp")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Comp")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
677cf42b4bab56d254af3cedf70d8b33a1cd8655b77b844cda69688062236d4c
|
||||
@@ -0,0 +1,15 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Comp
|
||||
build_property.ProjectDir = /home/nik/oop/labs/lab3/Comp/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
8
labs/lab3/Comp/obj/Debug/net9.0/Comp.GlobalUsings.g.cs
Normal file
8
labs/lab3/Comp/obj/Debug/net9.0/Comp.GlobalUsings.g.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
BIN
labs/lab3/Comp/obj/Debug/net9.0/Comp.assets.cache
Normal file
BIN
labs/lab3/Comp/obj/Debug/net9.0/Comp.assets.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
4738ae1d639521aa06fcc6e9f50bf7555361be46ea0813aeaae0849ff0d8dda5
|
||||
@@ -0,0 +1,14 @@
|
||||
/home/nik/oop/labs/lab3/Comp/bin/Debug/net9.0/Comp
|
||||
/home/nik/oop/labs/lab3/Comp/bin/Debug/net9.0/Comp.deps.json
|
||||
/home/nik/oop/labs/lab3/Comp/bin/Debug/net9.0/Comp.runtimeconfig.json
|
||||
/home/nik/oop/labs/lab3/Comp/bin/Debug/net9.0/Comp.dll
|
||||
/home/nik/oop/labs/lab3/Comp/bin/Debug/net9.0/Comp.pdb
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.AssemblyInfoInputs.cache
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.AssemblyInfo.cs
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.csproj.CoreCompileInputs.cache
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.dll
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/refint/Comp.dll
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.pdb
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/Comp.genruntimeconfig.cache
|
||||
/home/nik/oop/labs/lab3/Comp/obj/Debug/net9.0/ref/Comp.dll
|
||||
BIN
labs/lab3/Comp/obj/Debug/net9.0/Comp.dll
Normal file
BIN
labs/lab3/Comp/obj/Debug/net9.0/Comp.dll
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
1c1d8aa99bad15c1419b15147aa809a187ce4df48a3ea49619a2b8366bd03c85
|
||||
BIN
labs/lab3/Comp/obj/Debug/net9.0/Comp.pdb
Normal file
BIN
labs/lab3/Comp/obj/Debug/net9.0/Comp.pdb
Normal file
Binary file not shown.
BIN
labs/lab3/Comp/obj/Debug/net9.0/apphost
Executable file
BIN
labs/lab3/Comp/obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
BIN
labs/lab3/Comp/obj/Debug/net9.0/ref/Comp.dll
Normal file
BIN
labs/lab3/Comp/obj/Debug/net9.0/ref/Comp.dll
Normal file
Binary file not shown.
BIN
labs/lab3/Comp/obj/Debug/net9.0/refint/Comp.dll
Normal file
BIN
labs/lab3/Comp/obj/Debug/net9.0/refint/Comp.dll
Normal file
Binary file not shown.
78
labs/lab3/Comp/obj/project.assets.json
Normal file
78
labs/lab3/Comp/obj/project.assets.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net9.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net9.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"/home/nik/.nuget/packages/": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/Comp/Comp.csproj",
|
||||
"projectName": "Comp",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/Comp/Comp.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/Comp/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
labs/lab3/Comp/obj/project.nuget.cache
Normal file
10
labs/lab3/Comp/obj/project.nuget.cache
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "vi8SeANFTxY=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/nik/oop/labs/lab3/Comp/Comp.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
10
labs/lab3/Euclid/Euclid.csproj
Normal file
10
labs/lab3/Euclid/Euclid.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
29
labs/lab3/Euclid/Program.cs
Normal file
29
labs/lab3/Euclid/Program.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
int a, b, temp;
|
||||
|
||||
Console.Write("input a:");
|
||||
a = int.Parse(Console.ReadLine());
|
||||
Console.Write("input b:");
|
||||
b = int.Parse(Console.ReadLine());
|
||||
|
||||
temp = a;
|
||||
while (temp != b)
|
||||
{
|
||||
a = temp;
|
||||
if (a < b)
|
||||
{
|
||||
temp = a;
|
||||
a = b;
|
||||
b = temp;
|
||||
}
|
||||
temp = a - b;
|
||||
a = b;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
22
labs/lab3/Euclid/obj/Debug/net9.0/Euclid.AssemblyInfo.cs
Normal file
22
labs/lab3/Euclid/obj/Debug/net9.0/Euclid.AssemblyInfo.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Euclid")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6643fa5a40ce2f8d59e947612957e6f98be0fc14")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Euclid")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Euclid")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
f7830e0aba6c81b9b3395da547faa38c5d32674275cb9544fcd3300fe273345e
|
||||
@@ -0,0 +1,15 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = Euclid
|
||||
build_property.ProjectDir = /home/nik/oop/labs/lab3/Euclid/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
BIN
labs/lab3/Euclid/obj/Debug/net9.0/Euclid.assets.cache
Normal file
BIN
labs/lab3/Euclid/obj/Debug/net9.0/Euclid.assets.cache
Normal file
Binary file not shown.
73
labs/lab3/Euclid/obj/Euclid.csproj.nuget.dgspec.json
Normal file
73
labs/lab3/Euclid/obj/Euclid.csproj.nuget.dgspec.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"/home/nik/oop/labs/lab3/Euclid/Euclid.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"/home/nik/oop/labs/lab3/Euclid/Euclid.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/Euclid/Euclid.csproj",
|
||||
"projectName": "Euclid",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/Euclid/Euclid.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/Euclid/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
labs/lab3/Euclid/obj/Euclid.csproj.nuget.g.props
Normal file
15
labs/lab3/Euclid/obj/Euclid.csproj.nuget.g.props
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/nik/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
2
labs/lab3/Euclid/obj/Euclid.csproj.nuget.g.targets
Normal file
2
labs/lab3/Euclid/obj/Euclid.csproj.nuget.g.targets
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
78
labs/lab3/Euclid/obj/project.assets.json
Normal file
78
labs/lab3/Euclid/obj/project.assets.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net9.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net9.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"/home/nik/.nuget/packages/": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/Euclid/Euclid.csproj",
|
||||
"projectName": "Euclid",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/Euclid/Euclid.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/Euclid/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
labs/lab3/Euclid/obj/project.nuget.cache
Normal file
10
labs/lab3/Euclid/obj/project.nuget.cache
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "LKMJ2E6KA3k=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/nik/oop/labs/lab3/Euclid/Euclid.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
10
labs/lab3/IsLeapYear/IsLeapYear.csproj
Normal file
10
labs/lab3/IsLeapYear/IsLeapYear.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
19
labs/lab3/IsLeapYear/Program.cs
Normal file
19
labs/lab3/IsLeapYear/Program.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("input a year: ");
|
||||
int year = int.Parse(Console.ReadLine());
|
||||
|
||||
if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0))
|
||||
{
|
||||
Console.WriteLine("YES");
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("NO");
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear
Executable file
BIN
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear
Executable file
Binary file not shown.
23
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.deps.json
Normal file
23
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.deps.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"IsLeapYear/1.0.0": {
|
||||
"runtime": {
|
||||
"IsLeapYear.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"IsLeapYear/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.dll
Normal file
BIN
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.dll
Normal file
Binary file not shown.
BIN
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.pdb
Normal file
BIN
labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("IsLeapYear")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+36606926b9d67f78c473de632eed3cf6c4ed12c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("IsLeapYear")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("IsLeapYear")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
60073248f2e72a410758d2cc334f2df45c4e1b928c7d10106e1f0d0985acbdd8
|
||||
@@ -0,0 +1,15 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net9.0
|
||||
build_property.TargetPlatformMinVersion =
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = IsLeapYear
|
||||
build_property.ProjectDir = /home/nik/oop/labs/lab3/IsLeapYear/
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.EffectiveAnalysisLevelStyle = 9.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
@@ -0,0 +1,8 @@
|
||||
// <auto-generated/>
|
||||
global using global::System;
|
||||
global using global::System.Collections.Generic;
|
||||
global using global::System.IO;
|
||||
global using global::System.Linq;
|
||||
global using global::System.Net.Http;
|
||||
global using global::System.Threading;
|
||||
global using global::System.Threading.Tasks;
|
||||
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.assets.cache
Normal file
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.assets.cache
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
3e32f3e5469fa7ae4d4f6575879ce0b088bed58b037e048fde6d3046b571ffa2
|
||||
@@ -0,0 +1,14 @@
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.deps.json
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.runtimeconfig.json
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.dll
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/bin/Debug/net9.0/IsLeapYear.pdb
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.GeneratedMSBuildEditorConfig.editorconfig
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.AssemblyInfoInputs.cache
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.AssemblyInfo.cs
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.csproj.CoreCompileInputs.cache
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.dll
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/refint/IsLeapYear.dll
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.pdb
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.genruntimeconfig.cache
|
||||
/home/nik/oop/labs/lab3/IsLeapYear/obj/Debug/net9.0/ref/IsLeapYear.dll
|
||||
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.dll
Normal file
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.dll
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
d8e6b743770e775cc3dd410d6f7406fcf6c428e911ed12953f3cfc04caa010f4
|
||||
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.pdb
Normal file
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/IsLeapYear.pdb
Normal file
Binary file not shown.
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/apphost
Executable file
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/apphost
Executable file
Binary file not shown.
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/ref/IsLeapYear.dll
Normal file
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/ref/IsLeapYear.dll
Normal file
Binary file not shown.
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/refint/IsLeapYear.dll
Normal file
BIN
labs/lab3/IsLeapYear/obj/Debug/net9.0/refint/IsLeapYear.dll
Normal file
Binary file not shown.
73
labs/lab3/IsLeapYear/obj/IsLeapYear.csproj.nuget.dgspec.json
Normal file
73
labs/lab3/IsLeapYear/obj/IsLeapYear.csproj.nuget.dgspec.json
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"format": 1,
|
||||
"restore": {
|
||||
"/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj": {}
|
||||
},
|
||||
"projects": {
|
||||
"/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj",
|
||||
"projectName": "IsLeapYear",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/IsLeapYear/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
15
labs/lab3/IsLeapYear/obj/IsLeapYear.csproj.nuget.g.props
Normal file
15
labs/lab3/IsLeapYear/obj/IsLeapYear.csproj.nuget.g.props
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/home/nik/.nuget/packages/</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/home/nik/.nuget/packages/</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.12.4</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="/home/nik/.nuget/packages/" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />
|
||||
78
labs/lab3/IsLeapYear/obj/project.assets.json
Normal file
78
labs/lab3/IsLeapYear/obj/project.assets.json
Normal file
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"version": 3,
|
||||
"targets": {
|
||||
"net9.0": {}
|
||||
},
|
||||
"libraries": {},
|
||||
"projectFileDependencyGroups": {
|
||||
"net9.0": []
|
||||
},
|
||||
"packageFolders": {
|
||||
"/home/nik/.nuget/packages/": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "1.0.0",
|
||||
"restore": {
|
||||
"projectUniqueName": "/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj",
|
||||
"projectName": "IsLeapYear",
|
||||
"projectPath": "/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj",
|
||||
"packagesPath": "/home/nik/.nuget/packages/",
|
||||
"outputPath": "/home/nik/oop/labs/lab3/IsLeapYear/obj/",
|
||||
"projectStyle": "PackageReference",
|
||||
"configFilePaths": [
|
||||
"/home/nik/.nuget/NuGet/NuGet.Config"
|
||||
],
|
||||
"originalTargetFrameworks": [
|
||||
"net9.0"
|
||||
],
|
||||
"sources": {
|
||||
"https://api.nuget.org/v3/index.json": {}
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"projectReferences": {}
|
||||
}
|
||||
},
|
||||
"warningProperties": {
|
||||
"warnAsError": [
|
||||
"NU1605"
|
||||
]
|
||||
},
|
||||
"restoreAuditProperties": {
|
||||
"enableAudit": "true",
|
||||
"auditLevel": "low",
|
||||
"auditMode": "direct"
|
||||
},
|
||||
"SdkAnalysisLevel": "9.0.100"
|
||||
},
|
||||
"frameworks": {
|
||||
"net9.0": {
|
||||
"targetAlias": "net9.0",
|
||||
"imports": [
|
||||
"net461",
|
||||
"net462",
|
||||
"net47",
|
||||
"net471",
|
||||
"net472",
|
||||
"net48",
|
||||
"net481"
|
||||
],
|
||||
"assetTargetFallback": true,
|
||||
"warn": true,
|
||||
"downloadDependencies": [
|
||||
{
|
||||
"name": "Microsoft.AspNetCore.App.Ref",
|
||||
"version": "[9.0.9, 9.0.9]"
|
||||
}
|
||||
],
|
||||
"frameworkReferences": {
|
||||
"Microsoft.NETCore.App": {
|
||||
"privateAssets": "all"
|
||||
}
|
||||
},
|
||||
"runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/9.0.110/PortableRuntimeIdentifierGraph.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
labs/lab3/IsLeapYear/obj/project.nuget.cache
Normal file
10
labs/lab3/IsLeapYear/obj/project.nuget.cache
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "ctq/+qcVpDY=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/nik/oop/labs/lab3/IsLeapYear/IsLeapYear.csproj",
|
||||
"expectedPackageFiles": [
|
||||
"/home/nik/.nuget/packages/microsoft.aspnetcore.app.ref/9.0.9/microsoft.aspnetcore.app.ref.9.0.9.nupkg.sha512"
|
||||
],
|
||||
"logs": []
|
||||
}
|
||||
10
labs/lab3/Loop/Loop.csproj
Normal file
10
labs/lab3/Loop/Loop.csproj
Normal file
@@ -0,0 +1,10 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
36
labs/lab3/Loop/Program.cs
Normal file
36
labs/lab3/Loop/Program.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.Write("n = ");
|
||||
int n = int.Parse(Console.ReadLine());
|
||||
|
||||
// while
|
||||
Console.Write("\nwhile: \t\t");
|
||||
int i = 1;
|
||||
while (i <= n)
|
||||
{
|
||||
Console.Write(" " + i);
|
||||
i += 2;
|
||||
}
|
||||
|
||||
// do-while
|
||||
Console.Write("\ndo while: \t");
|
||||
i = 1;
|
||||
do
|
||||
{
|
||||
Console.Write(" " + i);
|
||||
i += 2;
|
||||
}
|
||||
while (i <= n);
|
||||
|
||||
// for:
|
||||
Console.Write("\nfor: \t\t");
|
||||
for (i = 1; i<=n; i+=2)
|
||||
{
|
||||
Console.Write(" " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/Loop/bin/Debug/net9.0/Loop
Executable file
BIN
labs/lab3/Loop/bin/Debug/net9.0/Loop
Executable file
Binary file not shown.
23
labs/lab3/Loop/bin/Debug/net9.0/Loop.deps.json
Normal file
23
labs/lab3/Loop/bin/Debug/net9.0/Loop.deps.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"Loop/1.0.0": {
|
||||
"runtime": {
|
||||
"Loop.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Loop/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
labs/lab3/Loop/bin/Debug/net9.0/Loop.dll
Normal file
BIN
labs/lab3/Loop/bin/Debug/net9.0/Loop.dll
Normal file
Binary file not shown.
BIN
labs/lab3/Loop/bin/Debug/net9.0/Loop.pdb
Normal file
BIN
labs/lab3/Loop/bin/Debug/net9.0/Loop.pdb
Normal file
Binary file not shown.
12
labs/lab3/Loop/bin/Debug/net9.0/Loop.runtimeconfig.json
Normal file
12
labs/lab3/Loop/bin/Debug/net9.0/Loop.runtimeconfig.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net9.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "9.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", FrameworkDisplayName = ".NET 9.0")]
|
||||
22
labs/lab3/Loop/obj/Debug/net9.0/Loop.AssemblyInfo.cs
Normal file
22
labs/lab3/Loop/obj/Debug/net9.0/Loop.AssemblyInfo.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Loop")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+36606926b9d67f78c473de632eed3cf6c4ed12c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Loop")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Loop")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// Generated by the MSBuild WriteCodeFragment class.
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user