using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplicationl { class Program { static void Main(string[] args) { int number = 1; //当前的数字 while (number <= 1000) { //判断当前的数字能否被3整除 if (number % 3 ==…