x=10; y 是:
x=-10;y 是:
x=40; y 是:
3、
using System;
class jieguo3
{
public static void Main()
{
string aa=”这是第一\t 行,\n 这是\\\\第二行.\n 这是第\”三\”行”;
string bb=@”这是第一\t 行,\n 这是\\\\第二行.\n 这是第\”三\”行”;
Console.WriteLine(“aa 为:”);
Console.WriteLine(aa);
Console.WriteLine(“bb 为:”);
Console.WriteLine(bb);
}
}
4、
using System;
public class jieguo4
{
public static void Main()
{
int[][] myArray = new int[2][];
myArray[0] = new int[5] {1,3,5,7,9};
myArray[1] = new int[4] {0, 2, 4, 6};
for (int i=0; i < myArray.Length; i++)
{ Console.Write("第({0})个数组: ", i);
评论0