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 ==…
分别用while,do-while,for语句实现 方法一:while #include<stdio.h> int main() { int m; m = ; ) { == ) printf("%5d", m); m = m + ; } } 方法二:do-whlie #include<stdio.h> int main() { int m; m = ; do { == ) printf("%5d", m); m = m + ; } ); }…