Untitled

Run Settings
LanguageC#
Language Version
Run Command
using System; namespace Loops { class Program { static void Main(string[] args) { /* 局部变量定义 */ int i, j; for (i = 2; i < 100; i++) { for (j = 2; j <= (i / j); j++) if ((i % j) == 0) break; // 如果找到,则不是质数 if (j > (i / j)) Console.WriteLine("{0} 是质数", i); } Console.ReadLine(); } } }
Editor Settings
Theme
Key bindings
Full width
Lines