Synchronization of old projects
Part1
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
|
||||
#region 练习题一
|
||||
//try
|
||||
//{
|
||||
// Console.Write("请输入你今天看教学的时长:");
|
||||
// int time = Convert.ToInt16(console.readline());
|
||||
// if (time >= 60)
|
||||
// {
|
||||
// Console.WriteLine("今天看视频花了{0}分钟,看来你离成功又近了一步!", time);
|
||||
// }
|
||||
// else Console.WriteLine("请继续努力");
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// Console.WriteLine("输入格式有误请重新重试");
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 练习题二
|
||||
//try
|
||||
//{
|
||||
// int yuWen, shuXue, yingYu;
|
||||
// Console.Write("请输入你的语文成绩:");
|
||||
// yuWen = Convert.ToInt16(Console.ReadLine());
|
||||
// Console.Write("请输入你的数学成绩:");
|
||||
// shuXue = Convert.ToInt16(Console.ReadLine());
|
||||
// Console.Write("请输入你的英语成绩:");
|
||||
// yingYu = Convert.ToInt16(Console.ReadLine());
|
||||
|
||||
// if (yuWen >= 70 && shuXue >= 80 && yingYu >= 90)
|
||||
// {
|
||||
// Console.WriteLine("非常棒,请继续加油");
|
||||
// }
|
||||
// else if (yuWen >= 90 && (shuXue >= 70 || yingYu >= 70))
|
||||
// {
|
||||
// Console.WriteLine("非常棒,请继续加油");
|
||||
// }
|
||||
// else if (yuWen == 100 && shuXue == 100 && yingYu == 100)
|
||||
// {
|
||||
// Console.WriteLine("非常棒,请继续加油");
|
||||
// }
|
||||
// else Console.WriteLine("请你继续加油");
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// Console.WriteLine("输入的格式有误");
|
||||
//}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 练习题三
|
||||
//Console.Write("请输入你的成绩:");
|
||||
|
||||
//try
|
||||
//{
|
||||
// int score = int.Parse(Console.ReadLine());
|
||||
// if (score >= 90)
|
||||
// {
|
||||
// Console.WriteLine("奖励一百");
|
||||
// }
|
||||
// else Console.WriteLine("一个月不准玩游戏");
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// Console.WriteLine("输入有误");
|
||||
//}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 练习题四
|
||||
//int a, b;
|
||||
//try
|
||||
//{
|
||||
// Console.WriteLine("请输入A的值:");
|
||||
// a = Convert.ToInt32(Console.ReadLine());
|
||||
// Console.WriteLine("请输入B的值:");
|
||||
// b = Convert.ToInt32(Console.ReadLine());
|
||||
// if (a+b >= 100)
|
||||
// {
|
||||
// Console.WriteLine(a);
|
||||
// }
|
||||
// else if (a%b==0 || b%a == 0)
|
||||
// {
|
||||
// Console.WriteLine(a);
|
||||
// }
|
||||
// else Console.WriteLine(b);
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// Console.WriteLine("输入格式有误");
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 练习题五
|
||||
//try
|
||||
//{
|
||||
// Console.WriteLine("请输入一个数");
|
||||
// int num = int.Parse(Console.ReadLine());
|
||||
// if (num % 2==0)
|
||||
// {
|
||||
// Console.WriteLine("这是个偶数");
|
||||
// }
|
||||
// else Console.WriteLine("这是个奇数");
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
// Console.WriteLine("你输入的格式有误");
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 练习题六
|
||||
//int num1 = 1, num2 = 2, num3 = 0;
|
||||
//if (num1 >= num2 && num1 >= num3)
|
||||
//{
|
||||
// Console.WriteLine("num1:{0}",num1);
|
||||
//}
|
||||
//else if (num2 >= num1 && num2 >= num3)
|
||||
//{
|
||||
// Console.WriteLine("num2:{0}",num2);
|
||||
//}
|
||||
//else Console.WriteLine("num3:{0}", num3);
|
||||
#endregion
|
||||
|
||||
#region 练习题七
|
||||
//Console.Write("请输入一个字符");
|
||||
//int num = Console.ReadKey().KeyChar;
|
||||
//Console.WriteLine();
|
||||
//if ('0' <= num && '9' >= num)
|
||||
//{
|
||||
// Console.WriteLine("你输入的是一个数字");
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Console.WriteLine("这不是一个数字");
|
||||
//}
|
||||
#endregion
|
||||
|
||||
#region 练习题八
|
||||
Console.WriteLine("太简单不做了");
|
||||
#endregion
|
||||
|
||||
#region 练习题九
|
||||
#endregion
|
||||
|
||||
#region 练习题十
|
||||
#endregion
|
||||
Reference in New Issue
Block a user