整数在8到16之间的集合中有多少个元素? [英] how many elements are in the set of even whole numbers between 8 and 16??

查看:319
本文介绍了整数在8到16之间的集合中有多少个元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:confused:X |我找不到它哈哈可以帮忙吗

编辑TR:修复了标签.并不是我希望有人能提供有帮助的答案...

:confused: X| i cant find it out haha can any one help

Edit TR: Fixed the tags. Not that I expect anyone to answer helpfully...

推荐答案

我希望它是42,但它是5(如果包含),或者3(如果有).
如果您需要代码,则为:
I wish it was 42, but it''s 5 (if inclusive), or 3 (if exclusive).
If you need the code, it is:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data;

namespace ComplicatedMathsProblems
    {
    class Program
        {
        static void Main(string[] args)
            {
            Console.WriteLine("{0}", 1 + 1 + 1 + 1 + 1);
            }
        }
    }


这篇关于整数在8到16之间的集合中有多少个元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆