Archived
1
0

Initial commit

This commit is contained in:
2025-10-24 17:19:46 +08:00
commit acc0c9e220
155 changed files with 77369 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.14.36518.9 d17.14
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp3", "ConsoleApp3.csproj", "{204DB49C-19DC-48F1-98A6-13B4763A5A4B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{204DB49C-19DC-48F1-98A6-13B4763A5A4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{204DB49C-19DC-48F1-98A6-13B4763A5A4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{204DB49C-19DC-48F1-98A6-13B4763A5A4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{204DB49C-19DC-48F1-98A6-13B4763A5A4B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5F740ED7-E63A-4B6F-9353-C4A67040534F}
EndGlobalSection
EndGlobal

32
ConsoleApp3/Program.cs Normal file
View File

@@ -0,0 +1,32 @@
using System;
namespace program.p
{
class DoWhileLoopGCF
{
static void Main()
{
int m, n, r, m1, n1;
Console.WriteLine("Please write the first number m");
m1 = int.Parse(Console.ReadLine());
Console.WriteLine("Please write the number n");
n1 = int.Parse(Console.ReadLine());
Console.WriteLine("The number m = {0},n = {1}", m1, n1);
if (m1 > n1)
{
m = m1;
n = n1;
}
else
{
m = n1;
n = m1;
}
do
{
r = m % n; m = n; n = r;
} while (r != 0);
Console.WriteLine("最大公约数{0},最小公倍数{1}", m, m1 * n1 / m);
Console.ReadLine();
}
}
}