使用变量存储以下商品信息,并打印输出
(1) 品牌(brand):爱国者F928
(2) 重量(weight):12.4
(3) 电池类型(type):内置锂电池
(4) 价格(price):499
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace task03
{
class Program
{
static void Main(string[] args)
{
string brand = "爱国者F928";
double weight = 12.4;
string type = "内置锂电池";
decimal price = 499m;
Console.WriteLine("此商品信息是:\n品牌"+brand
+"\n重量"+weight
+"\n电池类型"+type
+"\n价格:"+price);
Console.ReadKey();
}
}
}