求解123534653
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? int year = 2015;//年份
? ? ? ? ? ? string txet;
? ? ? ? ? ? if (year % 4 == 0)
? ? ? ? ? ? ? ?text = "閏年" ;
? ? ? ? ? ? ? ?else?
? ? ? ? ? ? ? ?text="平年";//請填寫代碼
? ? ? ? ? ? Console.WriteLine("今年是{0}",text);
? ? ? ? }
? ? }
}?
2020-02-04
string txet;定義的是txet變量,后面用的是text,沒有聲明
2019-07-15
三元運算符一行代碼搞定你的if? else
2019-05-03
string后面的text拼寫錯誤