namespace c_02zy
{
class Program
{
static void Main(string[] args)
{
// 1.由用户输入一个4位数的数字,分别求出该数字的个位、十位、百位、千位
//Console.WriteLine(“请输入一个4为数的数字”);
//string i = Console.ReadLine();
//4 Console.WriteLine(i % 10);
//2 Console.WriteLine(i / 100 % 10);
//1 Console.WriteLine(i / 1000 % 10);
//int a = 0;
//string b=null;
//if(a is int)
//{
// a = Convert.ToInt32(i);
// b = a % 10 + “个” + a / 10 % 10 + “十” + a / 100 % 10 + “百” + a / 1000 % 10+”千”;
//}
//Console.WriteLine(b);
//Console.ReadKey();
//2.定义一个变量记录硬盘的大小,如1GB,那么计算这个硬盘有多少MB。有多少KB。有多少Byte。(1024规则)
//Console.WriteLine("请输入一个。。。GB");
//string i = Console.ReadLine();
//int c = 0;
//int a=0;
//int b=0;
//int d=0;
//if(c is int)