課程
/后端開發
/C#
/C#開發輕松入門
Console.Write(x+"") 括號中是固定格式嗎?“”為啥是空的
2018-10-12
源自:C#開發輕松入門 4-1
正在回答
不會就不會么?在這裝上面B
風桑
namespace Test{??? class Program??? {??????? static void Main(string[] args)??????? {??????????? int y = 5;??????????? while (y<=5)//請輸入??????????? {??????????????? Console.Write(y+" ");??????????????? y--;//請輸入??????????????? if(y<=0)??????????????? break;??????????? }??????? }??? }}
剛看了其它同學的回答,原來是空格啊
舉報
本門課程是C#語言的入門教程,將帶你輕松入門.NET開發
1 回答Console.Write(".");或者 Console.Write("o");括號中如果是單個字符時不應該是用單引號的嗎? 求大神解釋
3 回答 for(int x=1;x<=7;x++){ for(int i=1;i<=7;i++){ if(x-i==0||x+i==8){ Console.Write("o"); }else{ Console.Write("."); }
1 回答定義的類型是固定的額嗎
2 回答第一個必須是Console.Write嗎?
2 回答關于Console.Write
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-04-10
不會就不會么?在這裝上面B
2018-11-26
namespace Test
{
??? class Program
??? {
??????? static void Main(string[] args)
??????? {
??????????? int y = 5;
??????????? while (y<=5)//請輸入
??????????? {
??????????????? Console.Write(y+" ");
??????????????? y--;//請輸入
??????????????? if(y<=0)
??????????????? break;
??????????? }
??????? }
??? }
}
2018-10-12
剛看了其它同學的回答,原來是空格啊