zoukankan      html  css  js  c++  java
  • 用c#语言编写1000以内能整除3的数字

    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 == 0)

                                          {

                                                  Console.WriteLine(number);

                                           }

                                            number+;//再看下一个数

                                      }

                              }

                  }

  • 相关阅读:
    html5-特殊符号的使用
    html5-表格
    html5-列表
    html5-绝对路径/相对路径
    html5-嵌入图片
    html5-超级链接
    html5-常用的文本元素
    html5-了解元素的属性
    Scanner类throwFor(Unknown Source)及跳过下一个扫描器分析
    有关HashMap的一些问题及解答
  • 原文地址:https://www.cnblogs.com/yangkaiming/p/8733140.html
Copyright © 2011-2022 走看看