2019-12-04

在控制台输出商品价目表

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

namespace train01

{

class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("商品名称\t购买数量\t商品单价\t金额");

            Console.WriteLine("{0}\t\t\t{1}\t{2}\t\t{3}","夹克","1","190","190");

            Console.WriteLine("{0}\t\t{1}\t{2}\t\t{3}","iphone11","2","6000","12000");

            Console.ReadKey();

        }

    }

}

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

推荐阅读更多精彩内容

  • using System; using System.Collections.Generic; using Sys...
    熙洛洛阅读 130评论 0 0
  • using System; using System.Collections.Generic; using Sys...
    熙洛洛阅读 167评论 0 0
  • 求四位会员卡号之和 (1) 键盘输入四位数字的会员卡号 (2) 使用“/”和“%”运算符分解获得会员卡各个位上的数...
    2f0fae0b4b67阅读 108评论 0 0
  • using System; using System.Collections.Generic; using Sys...
    熙洛洛阅读 89评论 0 0
  • 使用变量存储以下商品信息,并打印输出 (1) 品牌(brand):爱国者F928 (2) 重量(weight):1...
    2f0fae0b4b67阅读 64评论 0 0