Black和White颜色值

本文通过一个简单的C#控制台程序展示了数值运算及颜色属性的输出。程序计算了一个特定整数并显示了十六进制数值,同时输出了黑色和白色的颜色属性。

 

 static void Main(string[] args)

{

    uint num = 256 * 256*256 + 256*256+256;

    Console.WriteLine(num);

    Console.WriteLine(0x10);

Console.WriteLine("Black:   R:{0},G:{1},B:{2}"Color.Black.R, Color.Black.G, Color.Black.B);

Console.WriteLine("White:   R:{0},G:{1},B:{2}"Color.White.R, Color.White.G, Color.White.B);

           

            Console.ReadLine();

}

结果:16843008

      16

      Black R:0,G:0,B:0

      White  R:255,G:255,B:255

函数题 13 编程题 20 编程题 7-18 取口袋的小球 上一题 下一题 题目描述 7-18 取口袋的小球 分数 10 全屏浏览 作者 杨鑫 单位 大连理工大学 口袋中有红、黄、蓝、白、黑5种颜色的球若干个。每次从口袋中先后取出3个球,问得到3种不同颜色的球的可能取法,输出每种排列的情况。 输入格式: 无 输出格式: 输出每种排列的情况 输入样例: 1 输出样例: 在这里给出相应的输出。例如: 0 red yellow blue 1 red yellow white 2 red yellow black 3 red blue yellow 4 red blue white 5 red blue black 6 red white yellow 7 red white blue 8 red white black 9 red black yellow 10 red black blue 11 red black white 12 yellow red blue 13 yellow red white 14 yellow red black 15 yellow blue red 16 yellow blue white 17 yellow blue black 18 yellow white red 19 yellow white blue 20 yellow white black 21 yellow black red 22 yellow black blue 23 yellow black white 24 blue red yellow 25 blue red white 26 blue red black 27 blue yellow red 28 blue yellow white 29 blue yellow black 30 blue white red 31 blue white yellow 32 blue white black 33 blue black red 34 blue black yellow 35 blue black white 36 white red yellow 37 white red blue 38 white red black 39 white yellow red 40 white yellow blue 41 white yellow black 42 white blue red 43 white blue yellow 44 white blue black 45 white black red 46 white black yellow 47 white black blue 48 black red yellow 49 black red blue 50 black red white 51 black yellow red 52 black yellow blue 53 black yellow white 54 black blue red 55 black blue yellow 56 black blue white 57 black white red 58 black white yellow 59 black white blue total: 60
最新发布
11-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值