您的位置:首页 > 编程语言 > C#

C# 实现变了声明、赋值及使用(控制台程序)

2010-04-09 14:21 393 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int my_Money; //声明变量
my_Money = 1000; //赋值1000给my_Money变量
Console.WriteLine("您现在的存款为:{0}元",my_Money); //显示my_money的值
int other_Money = 1000; //声明并赋值变量
Console.WriteLine("您要显示的人员存款为:{0}元",other_Money);
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐