2019-10-11 14:44:13 +03:00
|
|
|
## Summary 1 (#3)
|
2019-10-10 17:37:55 +03:00
|
|
|
|
2019-10-21 15:07:02 +03:00
|
|
|
Write a function `first()` that has an *expression body* starting with `if`.
|
2020-05-12 19:08:29 +03:00
|
|
|
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":
|
2019-10-21 15:07:02 +03:00
|
|
|
|
|
|
|
| `first()` Arguments | `second()` Arguments |
|
|
|
|
|---------------------|----------------------|
|
|
|
|
| true, true, true | false, false, false |
|
2020-10-11 20:10:45 +03:00
|
|
|
| true, false, true | false, true, false |
|