输出中间是中文逗号。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
double x = 3.5;
int y = 3;
x++;
Console.WriteLine((int)x>y);
}
}
}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
double x = 3.5;
int y = 3;
x++;
Console.WriteLine((int)x>y);
}
}
}
2019-02-07
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.Write(666);
}
}
}
using System.Collections.Generic;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
Console.Write(666);
}
}
}
2019-01-30
闰年定义是可以被4整除,不能被100整除,但是被400整除可以啊
int year = 2015;//年份
bool answer;
string text;
answer = (year % 4 == 0 && year % 100 != 0)|year%400==0;
text = answer == true ? ("闰年" ): text =( "平年");
Console.WriteLine("今年是{0}", text);
int year = 2015;//年份
bool answer;
string text;
answer = (year % 4 == 0 && year % 100 != 0)|year%400==0;
text = answer == true ? ("闰年" ): text =( "平年");
Console.WriteLine("今年是{0}", text);
2019-01-13
class Program
{
static void Main(string[] args)
{
//请在这里完善代码
string[] f = new string[6] { "关羽","张飞","赵云","马超","黄忠",""};
for (int i = 0; i < f.Length; i++)
{
Console.Write(f[i]+',');
}
}
}
{
static void Main(string[] args)
{
//请在这里完善代码
string[] f = new string[6] { "关羽","张飞","赵云","马超","黄忠",""};
for (int i = 0; i < f.Length; i++)
{
Console.Write(f[i]+',');
}
}
}