📄 求一系列整数的和.txt
字号:
using System;
using System.Threading;
class My302
{
static void Main()
{
Console.WriteLine("Please Input the Number:");
int all = int.Parse(Console.ReadLine());
int sum=0,temp=0;
for (int i=1;i<=all;i++)
{
Console.Write("Please Input the NO."+i+" value:");
temp=int.Parse(Console.ReadLine());
sum+=temp;
}
Thread.Sleep(1000);
Console.WriteLine("The all is "+sum);
Thread.Sleep(5000);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -