小编Abi*_*bid的帖子

访问数据库查询分析器

Access数据库中的查询分析器在哪里?

ms-access

2
推荐指数
1
解决办法
4518
查看次数

从单个for循环生成乘法表

是否可以使用单个for循环生成乘法表(例如,从1到9)?

c# math

1
推荐指数
1
解决办法
2万
查看次数

如何在sql server 2005中确定日期名称?

我想知道查询,以便我可以得到今天的名字

sql-server

1
推荐指数
1
解决办法
3089
查看次数

计算不能被2,3,5整除的数字

在我的程序中,我认为我的count变量没有保持该值.我该怎么办才能举办?这是我的代码.

static void Main(string[] args)
    {
        double a;
        double count = 0;
        Console.WriteLine("Enter the Numbers : ");
        for (double i = 1; i <= 10; i++)
        {
            a = Convert.ToDouble(Console.ReadLine());
            if (a % 2 != 0 || a % 3 != 0 || a % 5 != 0)
            {
                count = count++;
            }
            //else
            //{

           // }
            Console.ReadLine();
        }
        Console.WriteLine("The Numbers That Are divisible by 2,3,5 are : " + count);
        Console.ReadLine();


    }
Run Code Online (Sandbox Code Playgroud)

c# math

0
推荐指数
2
解决办法
7047
查看次数

因子任务输出错误

我在一个程序的干运行中遇到了问题.我不明白为什么我的程序在输出中给出0.这是我的代码:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Task_8_Set_III
{
    class Program                      
    {
        static void Main(string[] args)
        {
            int i = 3;
            int c = i / fact(i);
            Console.WriteLine("Factorial is : " + c);
            Console.ReadLine();
        }
        static int fact(int value)
        {
            if (value ==1)
            {
                return 1;
            }
            else
            {
                return (value * (fact(value - 1)));
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

c# factorial

-2
推荐指数
1
解决办法
613
查看次数

标签 统计

c# ×3

math ×2

factorial ×1

ms-access ×1

sql-server ×1