4148=1.1联结词真值运算

 1 #include <stdio.h>
 2 #include <stdlib.h>
 3 
 4 int main()
 5 {
 6     int p,q;
 7     while(~scanf("%d %d",&p,&q))
 8     {
 9         printf("%d %d %d %d %d %d\n",p&&q,p||q,!p||q,((!p||q)&&(!q||p)),!(p&&q),!(p||q));
10     }
11     return 0;
12 }

 

posted @ 2019-03-14 18:45  念文丶  阅读(272)  评论(0编辑  收藏  举报