?哪里錯了?
for (int x = 1; x < 10; x++) ? ? ? ? ? ?{ ? ? ? ? ? ? ? ?if(x==3||x==8) ? ? ? ? ? ? ? ? ?continue;//請?zhí)砑哟a,過濾3和8 ? ? ? ? ? ? ? ?Console.Write(x); ? ? ? ? ? ?}
for (int x = 1; x < 10; x++) ? ? ? ? ? ?{ ? ? ? ? ? ? ? ?if(x==3||x==8) ? ? ? ? ? ? ? ? ?continue;//請?zhí)砑哟a,過濾3和8 ? ? ? ? ? ? ? ?Console.Write(x); ? ? ? ? ? ?}
2016-11-01
舉報
2017-08-19
if下如果不打大括號是只默認if下第一行的代碼,所以你確定你的continue和console.wirte沒有在同一行?
2017-02-05
我分開寫了,加了個else
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);
? ? ? ? ? ? }
? ? ? ? }
? ? }
}
我的都可以
2016-11-01
應(yīng)該沒錯,瀏覽器不行,你VS打進去試試就知道,這個網(wǎng)站和瀏覽器提交的問題