基础语言
Console.Write("请输入名字:");
name = Console.ReadLine();
Console.Write("请输入年龄:");
age = Console.ReadLine();
Console.Write("毕业学校:");
school = Console.ReadLine();
Console.Write("在什么地方工作:");
job = Console.ReadLine();
Console.Write("联系电话:");
tel = Console.ReadLine();
Console.WriteLine("我叫"+ name +",今年"+ age +",毕业于"+ school +",在"+ job +"工作,联系电话"+ tel);
Console.ReadLine();*/
两个数的取余
//Console.Write("请输入一个100以内的整数");
//int a = int.Parse(Console.ReadLine());
////判断是不是7的倍数
//if (a % 7 == 0)
//{
// Console.WriteLine("你输入的是7的倍数!");
//}
////判断个位是不是7
//if (a % 10 == 7)
//{
// Console.WriteLine("您输入的数的个位是7!");
//}
////判断十位是不是7
//if (a / 10 == 7)
//{
// Console.WriteLine("您输入的数的十位数是7!");
//}
//Console.ReadLine();
两个数的加减乘除法
Console.Write("请输入一个数a:");
int a = int.Parse(Console.ReadLine());
Console.Write("请再次输入一个数b");
int b = int.Parse(Console.ReadLine());
Console.WriteLine("a+b=" + (a + b));
Console.WriteLine("a-b=" + (a - b));
Console.WriteLine("a*b=" + (a * b));
Console.WriteLine("a/b=" + (a / b));
Console.ReadLine();