using System;
using System
using System
using System
namespace MyLunch
{
/// <summary>
/// switch的用法
/// </summary>
///
public class Number
{
ArrayList list = new ArrayList();
int[] intList;
public Number()
{
}
public void Input()
{
Console
string Input;
for (; ; )
{
Input = Console
if (
break;
else
list
}
}
public void Sort()
{
intList = new int[list
Console
//附值
for (int i =
{
intList[i] = int
}
for (int i =
{
for (int j = i +
{
int temp;
if (intList[i] > intList[j])
{
temp = intList[j];
intList[j] = intList[i];
intList[i] = temp;
}
}
}
}
public void Display()
{
foreach (var item in intList)
{
Console
}
}
}
class Program
{
static void Main(string[] args)
{
Number number = new Number();
number
number
number
}
}
}
//另外一個例子
using System;
using System
using System
using System
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
Console
int input=int
string Display;
if (input<
{
Display=
}
else if(input>
{
Display=
}
else if(input>
{
Display=
}
else if(input>
{
Display=
}
else
{
Display=
}
Console
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11410.html