課程
/后端開發(fā)
/C#
/C#開發(fā)輕松入門
為什么提示請檢查輸出是否等于:1245679
2016-10-28
源自:C#開發(fā)輕松入門 4-7
正在回答
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? for (int x = 1; x < 10; x++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if(x==3||x==8)
? ? ? ? ? ? ? ? ? ? continue;
? ? ? ? ? ? ? ? //請?zhí)砑哟a,過濾3和8
? ? ? ? ? ? ? ? Console.Write(x);
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
沒有問題,提交的時候你在continue前面加上一個tab換行試試,我這都可以
雪影狐4300448 提問者
沒毛病
舉報
本門課程是C#語言的入門教程,將帶你輕松入門.NET開發(fā)
1 回答錯哪里了?
4 回答?哪里錯了?
1 回答哪里錯了???
3 回答哪里錯了?
2 回答哪里出錯了?????
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-11-08
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? for (int x = 1; x < 10; x++)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? if(x==3||x==8)
? ? ? ? ? ? ? ? ? ? continue;
? ? ? ? ? ? ? ? //請?zhí)砑哟a,過濾3和8
? ? ? ? ? ? ? ? Console.Write(x);
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
沒有問題,提交的時候你在continue前面加上一個tab換行試試,我這都可以
2016-10-28
沒毛病