int x;//循環計數變量
x=5;//行① 請填寫計數變量的初始化語句
string y="加油";
while ( x>0)//行② 請填寫循環條件
{
Console.Write(y);
x--;//行③ 請填寫計數變量的自加語句
x=5;//行① 請填寫計數變量的初始化語句
string y="加油";
while ( x>0)//行② 請填寫循環條件
{
Console.Write(y);
x--;//行③ 請填寫計數變量的自加語句
namespace Test
{
class Program
{
static void Main(string[] args)
{
const string CITY = "布宜諾斯艾利斯";//常量,城市
const string NAME = "列奧波爾多·福圖納托·加爾鐵里·卡斯特利";//常量,姓名
Console.WriteLine(NAME+"出生在"+CITY+"的一個工人家庭");//使用常量
}
}
}
{
class Program
{
static void Main(string[] args)
{
const string CITY = "布宜諾斯艾利斯";//常量,城市
const string NAME = "列奧波爾多·福圖納托·加爾鐵里·卡斯特利";//常量,姓名
Console.WriteLine(NAME+"出生在"+CITY+"的一個工人家庭");//使用常量
}
}
}