539 B
539 B
Summary 1 (#3)
Write a function first()
that has an expression body starting with if
.
The function takes three Boolean
parameters and "ands" them together to
produce the result. Write second()
to do the same but "or" all three
parameters. In main()
, display the result of combining first()
and
second()
using both "and" and "or":
first() Arguments |
second() Arguments |
---|---|
true, true, true | false, false, false |
true, false, true | false, true, false |