第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么還是沒有運行成功?

using System;

using System.Collections.Generic;

using System.Text;


namespace Test

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? ? //請完善代碼

? ? ? ? ? ? for(int i = 0;i<7;i++)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? for(int j = 0;j<7;j++)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? if(j==i||i+j==6)

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? Console.Write("0");

? ? ? ? ? ? ? ? ? ? ? ? continue;

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? Console.Write(".");

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? Console.WriteLine();

? ? ? ? ? ? }

? ? ? ? }

? ? }

}


正在回答

6 回答

using System;

using System.Collections.Generic;

using System.Text;


namespace Test

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? ? for (int y = 1; y <= 7; y++)

? ? ? ? ? ? {

? ? ? ? ? ? ? ??

? ? ? ? ? ? ? ? for (int x = 1; x <= 7; x++)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? if (x == y || x == 8 - y)

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? Console.Write("0");

? ? ? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? else

? ? ? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? ? ? Console.Write(".");

? ? ? ? ? ? ? ? ? ? ? ??

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? ? if (x == 7)

? ? ? ? ? ? ? ? ? ? { Console.Write("\r\n"); }

? ? ? ? ? ? ? ? }


? ? ? ? ? ? ? ?


? ? ? ? ? ? ? ? //請完善代碼



? ? ? ? ? ? }


? ? ? ? }

? ? }

}加上\r\n換行符


0 回復 有任何疑惑可以回復我~

using System;

using System.Collections.Generic;

using System.Text;


namespace Test

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? ? for(int x=1;x<=7;x++)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? for(int y=7;y>=1;y--)

? ? ? ? ? ? ? ? {

? ? ? ? ? ? ? ? ? ? if(x+y==8){

? ? ? ? ? ? ? ? ? ? ? ? Console.Write('o');

? ? ? ? ? ? ? ? ? ? }else if(x==y){

? ? ? ? ? ? ? ? ? ? ? ? Console.Write('o');

? ? ? ? ? ? ? ? ? ? }else{

? ? ? ? ? ? ? ? ? ? ? ? Console.Write('.');

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? Console.WriteLine();

? ? ? ? ? ? }

? ? ? ? }

? ? }

}


0 回復 有任何疑惑可以回復我~

判定有問題,應該是i+j==8

0 回復 有任何疑惑可以回復我~

小寫的字母o,不是數(shù)字0

0 回復 有任何疑惑可以回復我~

代碼本身沒有問題,是你把大寫的O看成了零0

0 回復 有任何疑惑可以回復我~

using System;

using System.Collections.Generic;

using System.Text;


namespace Test

{

? ? class Program

? ? {

? ? ? ? static void Main(string[] args)

? ? ? ? {

? ? ? ? ? ? //請完善代碼

? ? ? ? ? ? for (int a = 0; a < 7; a ++){

? ? ? ? ? ? ? ? for (int b = 0; b < 7; b++){

? ? ? ? ? ? ? ? ? ? var up = a;

? ? ? ? ? ? ? ? ? ? var down = 6 - a;

? ? ? ? ? ? ? ? ? ? if (b == up || b == down){

? ? ? ? ? ? ? ? ? ? ? ? Console.Write('o');

? ? ? ? ? ? ? ? ? ? } else {

? ? ? ? ? ? ? ? ? ? ? ? Console.Write('.');

? ? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? }

? ? ? ? ? ? }

? ? ? ? }

? ? }

}

我覺得你可以參考一下我的代碼。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么還是沒有運行成功?

我要回答 關注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號