任务怎么改
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x = 5;
int y = 5;
int z = 5;
x++;
Console.Write(x);
++y;
Console.Write(y);
Console.Write(++z);
}
}
你可以试试这一串代码,我这串代码有彩蛋哦!!
等你找出来了,然后不懂在来问我
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x = 5;
int y = 5;
int z = 5;
x++;
Console.Write(x);
Console.Write(++y);
Console.Write(++z);
}
}
}
不谢
天真的你已经改好了,题目是需要将y++改为++y
这个实现不了嘛?
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
int x = 5;
int y = 5;
int z = 5;
x++;
Console.Write(x);
Console.Write(++y);
Console.Write(++z);
}
}
}