zoukankan      html  css  js  c++  java
  • 穷举(7-200被7整除的数)

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace 穷举_7_200被7整除的数_
    {
        class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("被7整除的数字及可能性:");
                int a = 3;
                for (int i = 7; i < 200; i++)
                {
                    if (i % 7 == 0)
                    {
                        Console.WriteLine(i + "被7整除");
                        a++;
                    }
                }
                Console.WriteLine("共有" + a + "种可能被7整除");
                Console.ReadLine();
            }
        }
    }
  • 相关阅读:
    【leetcode】二叉搜索树的最近公共祖先
    052-12
    052-11
    052-10
    052-9
    052-8
    052-6
    052-5
    052-3
    052-2
  • 原文地址:https://www.cnblogs.com/xubin-747/p/4705920.html
Copyright © 2011-2022 走看看