try { Console.WriteLine("*****欢迎进入奖客富翁系统*****"); Console .WriteLine ("1:注册\n 2:登录\n 3:抽...
try { Console.WriteLine("*****欢迎进入奖客富翁系统*****"); Console .WriteLine ("1:注册\n 2:登录\n 3:抽...
Console.WriteLine("1—100之间不能被7整除的数据为:"); int sum = 0; int line = 1; for (int i = 1; i <...
try { Console.WriteLine("请输入直角三角形高度"); int i = Convert.ToInt32(Console.ReadLine()); int...
try { Console.WriteLine("请输入直角三角形高度"); int i = Convert.ToInt32(Console.ReadLine()); int...
try { Console.WriteLine("请输入直角三角形高度"); int i = Convert.ToInt32(Console.ReadLine()); int...
{ try { int[] nums = new int[10]; int[] count = new int[4]; Console.WriteLine("请输入10个整数...
int[] m = {18, 25, 7, 36, 13, 2, 89, 63 }; int min = m[0]; int index = 0; for (int i = ...
try{ Console.WriteLine("请选择运算:1 加法 2 减法 3 乘法 4除法"); int num = Convert.ToInt3...
try{ ArrayListList=newArrayList(); //定义数组ArrayList //将原先成绩添加到数组中 List.Add(82...
{/** *实现用户随机输入6个整数,按从大到小排列 *1) 定义数组存放用户输入的数据 *2) 使用冒泡排序算法 *3) 循环输出交换后的数组 **/ try { //提示...
{ /** *.定义数组存储价格,并利用循环输入。 * 定义变量min保存当前的最低价。 *将min和数组中的其余元素依次比较。 * **/ try { int[] sum ...
{try { Console.WriteLine("请输入会员本月的消费记录"); int[] scores; scores = new int [5]; double su...
string[] name =newstring[] {"nike背包","adidas运动衫","李宁运动鞋","kappa外套","316腰包"}; ...
{ for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { Console.Write("{0} {1}=...
Console.WriteLine("请输入一个数");intsum = Convert.ToInt32(Console.ReadLine());for(inti =0; i...
for (int i = 1; i < 10; i++) { for (int s = 1; s <= i; s++) { Console.Write(s + "*" + i...
Console.WriteLine("请输入一个数"); int num = Convert.ToInt32(Console.ReadLine()); for (int i ...
Console.WriteLine("输入年龄");stringstr_year = Console.ReadLine(); Console.WriteLine...
double sum = 80000; int n = 2006; while (sum <= 200000) { sum=sum*(1...
{ Console.WriteLine("输入本金");//输入本金doublep = Convert.ToDouble(Console.ReadLin...