int//(int or double) 变量 = (int)d
会将变量转换为无小数点数,直接去掉小数点后的数,无需四舍五入。
会将变量转换为无小数点数,直接去掉小数点后的数,无需四舍五入。
2018-10-10
static void Main(string[] args)
{
int year = 2015;//年份
string text;
text=year%4==0?"闰年":"平年";//请填写代码
Console.WriteLine("今年是{0}",text);
}
{
int year = 2015;//年份
string text;
text=year%4==0?"闰年":"平年";//请填写代码
Console.WriteLine("今年是{0}",text);
}
2018-10-09
最赞回答 / qq_高仔_mrzIQ5
using System;using System.Collections.Generic;using System.Text;namespace Test{ class Program { static void Main(string[] args) { string today;//今天的午饭 string tomorrow;//明天的午饭 today = "鱼香肉丝"; ...
2018-10-09