最贊回答 / 慕尼黑4525711
using System;using System.Collections.Generic;using System.Text;namespace Test{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? double salary = 6000.00;//基本工資? ? ? ? ? ? double prize = 3200.00;//獎金? ? ? ? ? ? double tax = ...
2025-03-29
double money = 600000.00;//存款金額
if(money>=1000000)
Console.Write("送一臺微波爐");
else if(money>=50000&&money<=1000000)
Console.Write("送一套茶具");
else if(money>=10000&&money<50000)
Console.Write("送一袋大米");
else Console.Write("沒有禮品");
}
}
}
if(money>=1000000)
Console.Write("送一臺微波爐");
else if(money>=50000&&money<=1000000)
Console.Write("送一套茶具");
else if(money>=10000&&money<50000)
Console.Write("送一袋大米");
else Console.Write("沒有禮品");
}
}
}
2024-09-24
最贊回答 / 紅鼻子小黑
看作者的這張圖片,這幾種方式都可以,你這種多了一個"=",應(yīng)該是? string[] job = new string[4] { "經(jīng)理","項(xiàng)目主管","技術(shù)總監(jiān)","財務(wù)主管"};?<...圖片...>
2024-07-18
最新回答 / one突333
using System;using System.Collections.Generic;using System.Text;namespace projAboveAvg{? ? class Program? ? {? ? ? ? static void Main(string[] args)? ? ? ? {? ? ? ? ? ? int[] score = {90,65,88,70,46,81,100,68};? ? ? ? ? ? string[] name={"景珍","林惠洋","成蓉","洪...
2024-06-20
for(int x=1;x<8;x++)//請完善代碼
{
for(int y=1;y<8;y++)
{ int m=8-x;
if (y==x||y==m)
if (y==7)
Console.WriteLine("o");
else
Console.Write("o");
else if (y==7&&m!=7)
Console.WriteLine(".");
else
Console.Write(".");} }
{
for(int y=1;y<8;y++)
{ int m=8-x;
if (y==x||y==m)
if (y==7)
Console.WriteLine("o");
else
Console.Write("o");
else if (y==7&&m!=7)
Console.WriteLine(".");
else
Console.Write(".");} }
2024-06-15
最新回答 / weixin_慕粉2246583
namespace?Test{????class?Program????{????????static?void?Main(string[]?args)????????{????????????double?money?=?60000.00;//存款金額????????????string x="";????????????if(money>=100000)????????????x="送一臺微波爐";????????????else?if(money>=50000)????????????x...
2024-06-11