課程
/后端開發
/C#
/C#開發輕松入門
請問答案在哪找
2017-10-10
源自:C#開發輕松入門 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開發
1 回答答案問題解析
1 回答4-10問題答案
2 回答共享答案。。。
2 回答答案有問題啊老鐵
1 回答正確答案哦
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
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("");
? ? ? ? ? ? }
? ? ? ? ? ??
? ? ? ? }
? ? }
}