Synchronization of old projects

Part1
This commit is contained in:
2025-09-30 16:46:01 +08:00
parent 116b65164b
commit 4e1548abe2
167 changed files with 8668 additions and 43 deletions
@@ -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>
@@ -0,0 +1,28 @@
using System;
namespace Lesson8
{
class program
{
static void Main(string[] args)
{
int num1 = 24069;
Console.WriteLine(Convert.ToChar(num1));
Console.WriteLine();
int shuXue, yuWen, yingYu;
string name;
Console.Write("请输入姓名:");
name = Console.ReadLine();
Console.Write("请输入数学成绩:");
shuXue = Convert.ToInt32(Console.ReadLine());
Console.Write("请输入语文成绩:");
yuWen = Convert.ToInt32(Console.ReadLine());
Console.Write("请输入英语成绩:");
yingYu = Convert.ToInt32(Console.ReadLine());
Console.WriteLine($"你的成绩如下:\n语文:{yuWen}\n数学:{shuXue}\n英语:{yingYu}");
}
}
}