统一归档20260319
This commit is contained in:
1 parent
4e148364a9
commit
3ea0af246b
187 files changed
+5041
-75005
No files matched your search
@@ -1,9 +1,11 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<RootNamespace>_10_1</RootNamespace>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.14.36518.9 d17.14
|
VisualStudioVersion = 17.14.36717.8 d17.14
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WEB", "WEB\WEB.csproj", "{A3C3D8C8-B612-4870-8F2B-236892E31469}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "10_1", "10_1.csproj", "{AF3EAA9E-B0A4-4DDD-AD76-29F65FF546CC}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -11,15 +11,15 @@ Global
|
|||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{A3C3D8C8-B612-4870-8F2B-236892E31469}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{AF3EAA9E-B0A4-4DDD-AD76-29F65FF546CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{A3C3D8C8-B612-4870-8F2B-236892E31469}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{AF3EAA9E-B0A4-4DDD-AD76-29F65FF546CC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{A3C3D8C8-B612-4870-8F2B-236892E31469}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{AF3EAA9E-B0A4-4DDD-AD76-29F65FF546CC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{A3C3D8C8-B612-4870-8F2B-236892E31469}.Release|Any CPU.Build.0 = Release|Any CPU
|
{AF3EAA9E-B0A4-4DDD-AD76-29F65FF546CC}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||||
SolutionGuid = {00108C08-1D17-4F8A-AD75-0CE88263FD72}
|
SolutionGuid = {AE8A4792-903F-4B80-862F-2D95B7DEE3B6}
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
EndGlobal
|
EndGlobal
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
namespace _10_1
|
||||||
|
{
|
||||||
|
internal class Program
|
||||||
|
{
|
||||||
|
static void Main(string[] args)
|
||||||
|
{
|
||||||
|
double a, b, c, p, h, area;
|
||||||
|
Console.WriteLine("输入三角形的直角边A:");
|
||||||
|
a = Convert.ToDouble(Console.ReadLine());
|
||||||
|
Console.WriteLine("输入三角形的直角边B:");
|
||||||
|
b = Convert.ToDouble(Console.ReadLine());
|
||||||
|
c = Math.Sqrt(a * a + b * b);
|
||||||
|
Console.WriteLine("直角三角形的三边分别为,a={0},b={1},c={2}");
|
||||||
|
p = a + b + c;
|
||||||
|
h = p / 2;
|
||||||
|
area = Math.Sqrt(h * (h - a) * (h - b) * (h - c));
|
||||||
|
Console.WriteLine("直角三角形的周长为{0},面积为:{1}", p, area);
|
||||||
|
double sinA= a / c;
|
||||||
|
double aAngel= Math.Asin(sinA) * 180 / Math.PI;
|
||||||
|
double cosB= a / c;
|
||||||
|
double bAngel= Math.Acos(cosB) * 180 / Math.PI;
|
||||||
|
Console.WriteLine("直角三角形的角A为{0},角B为:{1}", aAngel, bAngel);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loaded 3 of 187 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user