⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 求一系列整数的和.txt

📁 c语言多个实用小程序,会有帮助的~ 自己瞎编的
💻 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 + -