P10 输入输出程序编写

相同类型的可以直接相加;

cw+tab+tab=console.Writeline();

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace C_8_1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("公司名称:");
            string name = Console.ReadLine();

            Console.WriteLine("今天日期:");
            string data = Console.ReadLine();
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine("输入的公司名称为"+name);
            Console.WriteLine("今天的日期为"+data);

            Console.ReadKey();
        }
    }
}

C#学习-8课时-LMLPHP

11-27 13:21