阅读程序写出运行结果3
2015-01-07 03:26
218 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int[] numbers={5,10,0};
Array.Sort(numbers);
Array.Reverse(numbers);
foreach (var item in numbers)
{
Console.WriteLine("{0}", item);
}
Console.ReadKey();
}
}
}
说明:运行结果为10 5 0
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int[] numbers={5,10,0};
Array.Sort(numbers);
Array.Reverse(numbers);
foreach (var item in numbers)
{
Console.WriteLine("{0}", item);
}
Console.ReadKey();
}
}
}
说明:运行结果为10 5 0
相关文章推荐
- 第十、十一周项目-阅读程序,写出这些程序的运行结果(2)
- 第10,11周 阅读程序写出运行结果 (1)
- 第10,11周 阅读程序写出运行结果 (3)
- 第9周-项目1-阅读并理解程序写出运行结果(3)
- 第九周实践1-阅读程序,写出程序运行结果并理解 (2)
- 第十、十一周项目-阅读程序,写出这些程序的运行结果(3)
- 阅读程序写出运行结果10
- 第九周实践-阅读程序写出运行结果并理解(3)
- 第九周实践-阅读程序,写出程序运行结果并理解(1)
- 第9周-项目1阅读理解程序并写出运行结果(2)
- 第十周项目一 阅读程序,写出程序运行的结果(3)
- 第12周项目1(1)-阅读有静态变量的程序,写出程序的运行结果
- 阅读程序写出运行结果7
- 第十、十一周项目-阅读程序,写出这些程序的运行结果(1)
- 第九周实践-阅读程序写出程序运行结果并理解(2)
- 第十、十一周项目-阅读程序,写出这些程序的运行结果(4)
- 阅读程序写出运行结果5
- 阅读程序写出运行结果6
- 第9周-项目1-阅读程序并写出运行结果理解(1)
- 第九周实践1---阅读程序,写出程序运行结果并理解