課程
/后端開發(fā)
/C#
/C#開發(fā)輕松入門
請問答案在哪找
2017-10-10
源自:C#開發(fā)輕松入門 2-4
正在回答
同學代碼呀
o.....o.o...o...o.o.....o.....o.o...o...o.o.....o
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? for(int h=1;h<=7;h++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? for(int l=1;l<=7;l++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if(l==h||l==8-h)
? ? ? ? ? ? ? ? ? ? Console.Write("o");
? ? ? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? ? ? Console.Write(".");
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? Console.WriteLine("");
? ? ? ? ? ? }
? ? ? ? ? ??
? ? ? ? }
? ? }
}
舉報
本門課程是C#語言的入門教程,將帶你輕松入門.NET開發(fā)
1 回答答案問題解析
1 回答4-10問題答案
2 回答共享答案。。。
2 回答答案有問題啊老鐵
1 回答答案有錯誤
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-07-21
同學代碼呀
2018-05-29
o.....o
.o...o.
..o.o..
...o...
..o.o..
.o...o.
o.....o
2017-10-10
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? for(int h=1;h<=7;h++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? for(int l=1;l<=7;l++)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? if(l==h||l==8-h)
? ? ? ? ? ? ? ? ? ? Console.Write("o");
? ? ? ? ? ? ? ? ? ? else
? ? ? ? ? ? ? ? ? ? Console.Write(".");
? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? Console.WriteLine("");
? ? ? ? ? ? }
? ? ? ? ? ??
? ? ? ? }
? ? }
}