課程
/后端開發(fā)
/C#
/C#開發(fā)輕松入門
請問4-10編程練習(xí) 0......0 .0...0. ..0.0.. ...0... ..0.0.. .0...0. 0.....0 這個(gè)答案應(yīng)該是什么?
2017-11-22
源自:C#開發(fā)輕松入門 4-10
正在回答
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? ?for(int i = 1;i<=7;i++)
? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ?for(int j = 1;j<=7;j++){
? ? ? ? ? ? ? ? ? ? ?if(i==j||i+j==8)
? ? ? ? ? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ? ? ? ? ?Console.Write("O");
? ? ? ? ? ? ? ? ? ? ?}else{
? ? ? ? ? ? ? ? ? ? ? ? ?Console.Write(".");
? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ?Console.WriteLine();
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
舉報(bào)
本門課程是C#語言的入門教程,將帶你輕松入門.NET開發(fā)
1 回答c#4-10編程課的答案是什么?
1 回答答案問題解析
2 回答4-10
2 回答4-10解題思路
2 回答答案有問題啊老鐵
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-11-22
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? ?for(int i = 1;i<=7;i++)
? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ?for(int j = 1;j<=7;j++){
? ? ? ? ? ? ? ? ? ? ?if(i==j||i+j==8)
? ? ? ? ? ? ? ? ? ? ?{
? ? ? ? ? ? ? ? ? ? ? ? ?Console.Write("O");
? ? ? ? ? ? ? ? ? ? ?}else{
? ? ? ? ? ? ? ? ? ? ? ? ?Console.Write(".");
? ? ? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ?}
? ? ? ? ? ? ? ? ?Console.WriteLine();
? ? ? ? ? ? }
? ? ? ? }
? ? }
}