刚学编程,1、 设X,Y,Z的值分别是FALSE,TRUE,FLASE.写出下列逻辑表达式的值:not x and not y;true and x or y;(x and z) or (z and y);x or z and y;(4>5) and (79) or ( 9
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/30 07:25:34
![刚学编程,1、 设X,Y,Z的值分别是FALSE,TRUE,FLASE.写出下列逻辑表达式的值:not x and not y;true and x or y;(x and z) or (z and y);x or z and y;(4>5) and (79) or ( 9](/uploads/image/z/12851892-36-2.jpg?t=%E5%88%9A%E5%AD%A6%E7%BC%96%E7%A8%8B%2C1%E3%80%81+%E8%AE%BEX%2CY%2CZ%E7%9A%84%E5%80%BC%E5%88%86%E5%88%AB%E6%98%AFFALSE%2CTRUE%2CFLASE.%E5%86%99%E5%87%BA%E4%B8%8B%E5%88%97%E9%80%BB%E8%BE%91%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%9A%84%E5%80%BC%EF%BC%9Anot+x+and+not+y%3Btrue+and+x+or+y%3B%28x+and+z%29+or+%28z+and+y%29%3Bx+or+z+and+y%3B%284%3E5%29+and+%2879%29+or+%28+9)
刚学编程,1、 设X,Y,Z的值分别是FALSE,TRUE,FLASE.写出下列逻辑表达式的值:not x and not y;true and x or y;(x and z) or (z and y);x or z and y;(4>5) and (79) or ( 9
刚学编程,
1、 设X,Y,Z的值分别是FALSE,TRUE,FLASE.写出下列逻辑表达式的值:
not x and not y;
true and x or y;
(x and z) or (z and y);
x or z and y;
(4>5) and (79) or ( 9
刚学编程,1、 设X,Y,Z的值分别是FALSE,TRUE,FLASE.写出下列逻辑表达式的值:not x and not y;true and x or y;(x and z) or (z and y);x or z and y;(4>5) and (79) or ( 9
public class TestLogic {
public static void main(String[]args)
{
boolean x=false;
boolean y=true;
boolean z=false;
System.out.println(!(x&&y));
System.out.println(true && (x||y) );
System.out.println( (x&&z) || (y&&z) );
System.out.println(x||z&&y);
System.out.println((4>5) && (79)||(9