1
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<RootNamespace>C_Sharp_1_7</RootNamespace>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.14.36616.10 d17.14
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "C Sharp 1_7", "C Sharp 1_7.csproj", "{1D496A2B-B515-47C2-92E5-DA4E71E6241D}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{1D496A2B-B515-47C2-92E5-DA4E71E6241D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1D496A2B-B515-47C2-92E5-DA4E71E6241D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1D496A2B-B515-47C2-92E5-DA4E71E6241D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1D496A2B-B515-47C2-92E5-DA4E71E6241D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {91D75058-A649-4AB6-831D-FD35895D09FB}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
namespace C_Sharp_1_7
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
double salary, fees;
|
||||
Console.WriteLine("请输入工资");
|
||||
salary = double.Parse(Console.ReadLine());
|
||||
if (salary > 0 && salary <= 3000)
|
||||
fees = salary * 0.0005;
|
||||
else if (salary > 3000 && salary <= 5000)
|
||||
fees = salary * 0.0010;
|
||||
else if (salary > 5000 && salary <= 10000)
|
||||
fees = salary * 0.0015;
|
||||
else if (salary > 10000)
|
||||
fees = salary * 0.0020;
|
||||
else
|
||||
Console.WriteLine("工资输入有误");
|
||||
Console.WriteLine("应缴纳的费用是:" + fees);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user