美文网首页
2018-11-21作业1

2018-11-21作业1

作者: 零二幺五 | 来源:发表于2018-11-21 14:54 被阅读0次

    using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Console.WriteLine("请输入一个数字"); string str_i = Console.ReadLine(); int i = Convert.ToInt32(str_i); for (int a = 0; a <= i; a++) { Console.WriteLine("{0}+{1}={2}", a, i - a, i); } Console .ReadKey(); } } }

    相关文章

      网友评论

          本文标题:2018-11-21作业1

          本文链接:https://www.haomeiwen.com/subject/gklcqqtx.html