static void Main(string[] args)
{
int y = 5;
while (y>0)//請輸入
{
Console.Write(y--+" ");
//請輸入
}
}
{
int y = 5;
while (y>0)//請輸入
{
Console.Write(y--+" ");
//請輸入
}
}
2017-03-07
Console.WriteLine("我的工資獎金總額是" + (int)(salary + prize)+"元");
Console.WriteLine("我的稅后收入是" + (int)(salary + prize - tex) + "元");
}
沒錯呀....
Console.WriteLine("我的稅后收入是" + (int)(salary + prize - tex) + "元");
}
沒錯呀....
2017-03-06
for(int y=7;y>=1;y--)
{
for(int x=1;x<=7;x++)
{
if(x==y||x+y==8)
Console.Write("0");
else
Console.Write(".");
}
Console.WriteLine();
}
過不了啊過不了
{
for(int x=1;x<=7;x++)
{
if(x==y||x+y==8)
Console.Write("0");
else
Console.Write(".");
}
Console.WriteLine();
}
過不了啊過不了
bool hasBeishu = false;
for (int i = 0; i < num.Length;i++) {
if (num[i] % 7 == 0){
hasBeishu = true;
break; } }
if (hasBeishu)
Console.WriteLine("有7的整倍數");
else
Console.WriteLine("沒有7的整倍數");
for (int i = 0; i < num.Length;i++) {
if (num[i] % 7 == 0){
hasBeishu = true;
break; } }
if (hasBeishu)
Console.WriteLine("有7的整倍數");
else
Console.WriteLine("沒有7的整倍數");