48.2k views
2 votes
The template code provided is intended to take two inputs, x and y, from the user and print "pass" if one or more of the following is true:

x is not less than 4
y is not greater than 5 and x + y is less than 7
However, when using De Morgan's law to simplify this code, the programmer has made some mistakes. Can you correct the errors so the code functions as intended?

User Honeylet
by
7.2k points

1 Answer

2 votes
I hate math so I couldn’t tell you but hope you can find an answer my guy!
User Vojtech B
by
7.5k points