課程
/后端開發
/C#
/C#開發輕松入門
請問4-10編程練習 0......0 .0...0. ..0.0.. ...0... ..0.0.. .0...0. 0.....0 這個答案應該是什么?
2017-11-22
源自:C#開發輕松入門 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();
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
舉報
本門課程是C#語言的入門教程,將帶你輕松入門.NET開發
1 回答c#4-10編程課的答案是什么?
1 回答答案問題解析
2 回答4-10
2 回答4-10解題思路
2 回答答案有問題啊老鐵
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
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();
? ? ? ? ? ? }
? ? ? ? }
? ? }
}