程序员日常

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();

将编程看作是一门艺术,而不单单是个技术。 敲打的英文字符是我的黑白琴键, 思维图纸画出的是我编写的五线谱。 当美妙的华章响起,现实通往二进制的大门即将被打开。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值