2018-11-21作业2

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int x = 1; x <= 9; x++) { for (int y = 1; y <= x; y++) { Console.Write("{0}*{1}={2}\t", x, y, x * y); if (x == y) { Console.WriteLine(); } } } Console.ReadKey(); } } }

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 7,593评论 0 3
  • 分享给大家一个很久之前写的一个纯C#控制台 3D闯关游戏代码 直接复制就可以用 初学者可以看看 学习一下编程思想还...
    Magic_Dong阅读 9,662评论 3 0
  • 知识点: 注:int类型默认32位有大小范围 且第一位为符号位 0 为正 1 为负 8.4作业 A:1、风力预警系...
    cGunsNRoses阅读 4,748评论 0 0
  • using System; using System.Collections.Generic; using Sys...
    PANGTIANLONG阅读 2,383评论 0 0
  • 大家好,我是日记星球216号星宝宝丫丫,这是我在日记星球的第62篇日记!如果你想挑战自己的耐力,快来成为我们的同学...
    丫丫向大大阅读 1,196评论 0 0