摘要:
namespace 赶羊递归 { class Program { public int jisuan(int day) //创建一个函数,输入day计算出羊的总数 { int sum=0; if(day==7) { sum = 2; return sum; //一定要加return截止 } su... 阅读全文
摘要:
namespace 函数数组排序带出最大最小值及平均值{ class Program { static void Main(string[] args) { int[] b=new int[]{9,1,5,3,7}; int max = 0; //设置两个变量用来接收最低值与最小值。 int mi... 阅读全文
摘要:
namespace 函数__青歌赛打分{ class Program { public int[] Array(int[] a) //排序 { int n = a.Length; for (int i = 1; i <= a.Length; i++) { for (int j = 1; j <= a... 阅读全文
摘要:
namespace 随机生成手机号{ class Program { static void Main(string[] args) { while (true) { long[] array = new long[10]{13581049314,18366885682,13626435731,1... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace 用函数把闹钟习题练一练无返回值{ class Program { public void naozhong... 阅读全文
摘要:
namespace 函数冒泡排序{ class Program { static void Main(string[] args) { int[] b = new int[5] { 1,5,3,4,2}; new Program().Array(b); //数组b调用已经写好的Array函数用来排... 阅读全文
摘要:
namespace 火影忍者多人对战{ class Program { //创建一个Player的结构体 struct Player { public string name; public int hp; public int attack; public int defend; public i... 阅读全文
摘要:
namespace 商场打折结构体{ class Program { struct ZhuangBei { public string name; public double price; public int amount; } static void Main(string[] args) {... 阅读全文