// class MathTool{
// //1、判断一个数是不是偶数;
// public void num(int n){
// if (n % 2 == 0) {
// Console.WriteLine ("这是一个偶数");
// }else{
// Console.WriteLine ("这是一个奇数");
// }
//
// }
// //2、打印int类型数组的办法;
// public void Array(int [] array){
// for (int i = 0; i < array.Length; i++) {
// Console.WriteLine (array[i]);
// }
// }
// //3、找出int类型数组中的最大数;
// public int MaxArray(int [] array){
// int i = 0,max = array[i];
// for (; i < array.Length ; i++) {
// if (max < array[i]) {
// max = array[i];
// }
// }
// return max;
// }
// //4、冒泡排序法;
// public void SequenceArray(int [] array){
// for (int i = 0; i < array.Length ; i++) {
// for (int j = 0; j < array.Length -(i+1); j++) {
// if (array[j] > array[j+1]) {
// int temp = array [j];
// array [j] = array [j + 1];
// array [j + 1] = temp;
// }
// }
// }
// for (int i = 0; i < array.Length ; i++) {
// Console.WriteLine (array[i]);
// }
// }
// //5、打印100到n水仙花数;
// public int Flower (int n){
// int count = 0;
// while (n >= 100 && n <= 1000) {
// if ((Math.Pow (n % 10, 3) + Math.Pow ((n / 10) % 10, 3) + Math.Pow (n / 100, 3)) == n) {
// count++;
// }
// n--;
// }
// return count;
// }
// }
// //1、判断一个数是不是偶数;
// public void num(int n){
// if (n % 2 == 0) {
// Console.WriteLine ("这是一个偶数");
// }else{
// Console.WriteLine ("这是一个奇数");
// }
//
// }
// //2、打印int类型数组的办法;
// public void Array(int [] array){
// for (int i = 0; i < array.Length; i++) {
// Console.WriteLine (array[i]);
// }
// }
// //3、找出int类型数组中的最大数;
// public int MaxArray(int [] array){
// int i = 0,max = array[i];
// for (; i < array.Length ; i++) {
// if (max < array[i]) {
// max = array[i];
// }
// }
// return max;
// }
// //4、冒泡排序法;
// public void SequenceArray(int [] array){
// for (int i = 0; i < array.Length ; i++) {
// for (int j = 0; j < array.Length -(i+1); j++) {
// if (array[j] > array[j+1]) {
// int temp = array [j];
// array [j] = array [j + 1];
// array [j + 1] = temp;
// }
// }
// }
// for (int i = 0; i < array.Length ; i++) {
// Console.WriteLine (array[i]);
// }
// }
// //5、打印100到n水仙花数;
// public int Flower (int n){
// int count = 0;
// while (n >= 100 && n <= 1000) {
// if ((Math.Pow (n % 10, 3) + Math.Pow ((n / 10) % 10, 3) + Math.Pow (n / 100, 3)) == n) {
// count++;
// }
// n--;
// }
// return count;
// }
// }