作业要求
在屏幕上显示客户姓名,住址,年龄,邮箱,工资。
代码
...
namespace _1
{
class Program
{
static void Main(string[] args)
{
string name = "wanglinpeng";
int age = 20;
string email = "wanglinpeng@qq.com";
string addr = "杭州下沙";
decimal salar = 2000m;
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("他是"+name);
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("他住在" +addr);
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("他今年"+age+"了");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("他的邮箱是:" + email);
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("他的工资是" + salar + "元/月");
Console.ReadKey();
}
}
}
...
网友评论