首页 > 代码库 > 程序员日常

程序员日常

1、健康

2、积累

 

问题拆解

目标为主

 

 

今日散码

//Console.WriteLine("今天开始我们的vs2015C#练习");
//Console.WriteLine("请输入数据类型值类型的一个整型,提示全部小写");
//string s = Console.ReadLine();
//string r = ("int");
//Console.WriteLine("你的答案是" + s);
//Console.WriteLine("正确答案是" + r);
//Console.WriteLine("你回答正确了吗?");
//Console.WriteLine("下一个题目我还没想好,等吃完饭再来出哦,请稍后……");
//Console.WriteLine("输入任意字符跳过等待");
//Console.ReadLine();
//Console.WriteLine("真的好饱啊~");
//Console.WriteLine("我还没搞懂等待函数的timer怎么用");
//Console.WriteLine("不过也无所谓啦学到哪儿算哪,关键要继续保持兴趣");
//Console.WriteLine("我们接下来做一下数学运算符");
//Console.WriteLine("输入任意字符跳过等待");

//Console.ReadLine();
//int num1 = 5;
//int num2 = 5;
//Console.WriteLine(num1&num2);

//Console.ReadKey();


//string a = ("dada");

// Console.ReadLine();
//if (a != "dada")
//{
// Console.WriteLine("必须输入dada才行哦");
//}

//{
// Console.WriteLine("恭喜你填写正确+10分");
//}
//Console.ReadKey();


//swich
////输入1显示星期一
////Console.WriteLine("请输入1-7中的一个数字");
//Console.WriteLine("请输入1-7中的一个数字");
//int week = int.Parse(Console.ReadLine());
//if (week == 1) Console.WriteLine("星期一");
//if (week == 2) Console.WriteLine("星期二");
//if (week == 3) Console.WriteLine("星期三");
//if (week == 4) Console.WriteLine("星期四");
//if (week == 5) Console.WriteLine("星期五");
//if (week == 6) Console.WriteLine("星期六");
//if (week == 7) Console.WriteLine("星期天");

Console.WriteLine("请输入1-7中的一个数字");
int week = int.Parse(Console.ReadLine());
switch (week)
{

case 1: Console.WriteLine("111111");break;
case 2: Console.WriteLine("222222");break;
case 3: Console.WriteLine("333333"); break;
case 4: Console.WriteLine("444444"); break;
case 5: Console.WriteLine("555555"); break;
case 6: Console.WriteLine("666666"); break;
case 7: Console.WriteLine("777777"); break;
default: Console.WriteLine("输入错误");break;
}


Console.ReadKey();

程序员日常