星空网 > 软件开发 > ASP.net

C#生成真值表

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication4{  class Program  {    static void Main(string[] args)    {      Console.WriteLine("x\ty\tx&&y\tx||y\tx^y");      for (int i = 0; i < 2; i++)      {        for (int j = 0; j < 2; j++)        {          Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}", (i==0), (j==0), ((i == 0) && (j == 0)), ((i == 0) || (j == 0)), ((i == 0) ^ (j == 0)));        }      }         }  }}





 




原标题:C#生成真值表

关键词:C#

C#
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

捷报:这一次是Shopee卖家胜诉!Shopee海外仓补货提醒功能上线:https://www.goluckyvip.com/news/7689.html
4月即将实施的海关新政整合:https://www.goluckyvip.com/news/769.html
2022年东南亚Shopee虾皮四大选品策略分析 :https://www.goluckyvip.com/news/7690.html
【干货】2022上半年TikTok Shop跨境电商数据分析报告:https://www.goluckyvip.com/news/7691.html
Lazada开店需要什么条件?:https://www.goluckyvip.com/news/7692.html
美森海运价格全线下滑,部分热门航线持续暴跌!:https://www.goluckyvip.com/news/7693.html
深圳有没有比较好玩的景点 深圳有没有比较好玩的景点推荐一下:https://www.vstour.cn/a/366175.html
长治婚庆女司仪和主持人:https://www.vstour.cn/a/366176.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流